# HG changeset patch # User Thomas Junk # Date 1550501755 -3600 # Node ID b87211f595aecfc9fffd409f9bac25bbf69e075a # Parent 716c0eba89a251e43ba1ae5d761663856a10f517 import-schedule: fix edit waterway gauge import. transmitting cedentials correctly diff -r 716c0eba89a2 -r b87211f595ae client/src/components/importschedule/Importscheduledetail.vue --- a/client/src/components/importschedule/Importscheduledetail.vue Mon Feb 18 15:42:13 2019 +0100 +++ b/client/src/components/importschedule/Importscheduledetail.vue Mon Feb 18 15:55:55 2019 +0100 @@ -742,7 +742,7 @@ } if (this.isCredentialsRequired) { if (!this.username || !this.password) return; - data["username"] = this.username; + data["user"] = this.username; data["password"] = this.password; } if (this.import_ == this.$options.IMPORTTYPES.FAIRWAYDIMENSION) { @@ -815,7 +815,7 @@ if (!this.username || !this.password) return; config = { ...config, - username: this.username, + user: this.username, password: this.password }; } diff -r 716c0eba89a2 -r b87211f595ae client/src/store/importschedule.js --- a/client/src/store/importschedule.js Mon Feb 18 15:42:13 2019 +0100 +++ b/client/src/store/importschedule.js Mon Feb 18 15:55:55 2019 +0100 @@ -130,7 +130,7 @@ if (url) { Vue.set(state.currentSchedule, "url", url); } - let { insecure, username, password, los, depth } = config; + let { insecure, user, password, los, depth } = config; let sortBy = config["sort-by"]; let minWidth = config["min-width"]; let maxWidth = config["max-width"]; @@ -146,8 +146,8 @@ if (sortBy) { Vue.set(state.currentSchedule, "sortBy", sortBy); } - if (username) { - Vue.set(state.currentSchedule, "username", username); + if (user) { + Vue.set(state.currentSchedule, "username", user); } if (password) { Vue.set(state.currentSchedule, "password", password);