changeset 1867:954a099425df

import: fairwaydimensions correct attribute names
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 17 Jan 2019 16:07:49 +0100
parents ee5ab1f83506
children 08e3beb65403
files client/src/components/importschedule/Importscheduledetail.vue client/src/store/imports.js
diffstat 2 files changed, 14 insertions(+), 19 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importschedule/Importscheduledetail.vue	Thu Jan 17 16:02:28 2019 +0100
+++ b/client/src/components/importschedule/Importscheduledetail.vue	Thu Jan 17 16:07:49 2019 +0100
@@ -846,13 +846,14 @@
           !this.sourceOrganization
         )
           return;
-        addAttribute(data, {
-          LOS: this.LOS,
-          minWidth: this.minWidth,
-          maxWidth: this.maxWidth,
-          depth: this.depth,
-          sourceOrganization: this.sourceOrganization
-        });
+        const values = {
+          los: this.LOS,
+          depth: this.depth
+        };
+        values["min-width"] = this.minWidth;
+        values["max-width"] = this.maxWidth;
+        values["source-organization"] = this.sourceOrganization;
+        addAttribute(data, values);
       }
       if (this.scheduled) data["cron"] = cron;
       data["kind"] = IMPORTTYPEKIND[this.import_];
--- a/client/src/store/imports.js	Thu Jan 17 16:02:28 2019 +0100
+++ b/client/src/store/imports.js	Thu Jan 17 16:07:49 2019 +0100
@@ -165,17 +165,11 @@
         Vue.set(state.currentSchedule, "url", url);
       }
       if (attributes) {
-        let {
-          insecure,
-          username,
-          password,
-          LOS,
-          minWidth,
-          maxWidth,
-          depth,
-          sourceOrganization
-        } = attributes;
+        let { insecure, username, password, los, depth } = attributes;
         let sortBy = attributes["sort-by"];
+        let minWidth = attributes["min-width"];
+        let maxWidth = attributes["max-width"];
+        let sourceOrganization = attributes["source-organization"];
         const featureType = attributes["feature-type"];
         insecure = insecure == "true";
         if (insecure) {
@@ -193,8 +187,8 @@
         if (password) {
           Vue.set(state.currentSchedule, "password", password);
         }
-        if (LOS) {
-          Vue.set(state.currentSchedule, "LOS", LOS);
+        if (los) {
+          Vue.set(state.currentSchedule, "LOS", los);
         }
         if (minWidth) {
           Vue.set(state.currentSchedule, "minWidth", minWidth);