Mercurial > gemma
changeset 2312:b87211f595ae
import-schedule: fix edit waterway gauge import. transmitting cedentials correctly
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 18 Feb 2019 15:55:55 +0100 |
parents | 716c0eba89a2 |
children | da4c91866dfe |
files | client/src/components/importschedule/Importscheduledetail.vue client/src/store/importschedule.js |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 }; }
--- 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);