Mercurial > gemma
changeset 1744:ecd4ceccfd02
importschedule: insecure flag is now unmarshalled
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 10 Jan 2019 09:33:47 +0100 |
parents | 85d0f017fbee |
children | 6eb099690279 |
files | client/src/store/imports.js |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/store/imports.js Wed Jan 09 21:58:35 2019 +0100 +++ b/client/src/store/imports.js Thu Jan 10 09:33:47 2019 +0100 @@ -124,7 +124,7 @@ } }, unmarshallCurrentSchedule: (state, payload) => { - const { kind, id, cron, url } = payload; + const { kind, id, cron, url, attributes } = payload; const eMailNotification = payload["send-email"]; Vue.set(state.currentSchedule, "import_", KINDIMPORTTYPE[kind]); Vue.set(state.currentSchedule, "id", id); @@ -139,6 +139,13 @@ if (url) { Vue.set(state.currentSchedule, "url", url); } + if (attributes) { + let { insecure } = attributes; + insecure = insecure == "true"; + if (insecure) { + Vue.set(state.currentSchedule, "insecure", insecure); + } + } } }, actions: {