changeset 1857:9141abe7c75a

import fairwaydimensions: fields pushed/retrieved
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 17 Jan 2019 12:05:12 +0100
parents 5996b50d154a
children 108a049c8394
files client/src/components/importschedule/Importscheduledetail.vue client/src/store/imports.js
diffstat 2 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importschedule/Importscheduledetail.vue	Thu Jan 17 11:58:46 2019 +0100
+++ b/client/src/components/importschedule/Importscheduledetail.vue	Thu Jan 17 12:05:12 2019 +0100
@@ -665,6 +665,7 @@
       switch (this.import_) {
         case this.$options.IMPORTTYPES.WATERWAYAXIS:
         case this.$options.IMPORTTYPES.WATERWAYAREA:
+        case this.$options.IMPORTTYPES.FAIRWAYDIMENSIONS:
           return true;
         default:
           return false;
@@ -822,13 +823,14 @@
           !this.depth ||
           !this.sourceOrganization
         )
-          addAttribute(data, {
-            LOS: this.LOS,
-            minWidth: this.minWidth,
-            maxWidth: this.maxWidth,
-            depth: this.depth,
-            sourceOrganization: this.sourceOrganization
-          });
+          return;
+        addAttribute(data, {
+          LOS: this.LOS,
+          minWidth: this.minWidth,
+          maxWidth: this.maxWidth,
+          depth: this.depth,
+          sourceOrganization: this.sourceOrganization
+        });
       }
       if (this.scheduled) data["cron"] = cron;
       data["kind"] = IMPORTTYPEKIND[this.import_];
--- a/client/src/store/imports.js	Thu Jan 17 11:58:46 2019 +0100
+++ b/client/src/store/imports.js	Thu Jan 17 12:05:12 2019 +0100
@@ -29,8 +29,8 @@
   GAUGEMEASUREMENT: "gaugemeasurement",
   FAIRWAYAVAILABILITY: "fairwayavailability",
   WATERWAYAREA: "waterwayarea",
-  FAIRWAYDIMENSIONS: "fd",
-  WATERWAYGAUGES: "wg"
+  FAIRWAYDIMENSIONS: "fairwaydimensions",
+  WATERWAYGAUGES: "waterwaygauges"
 };
 
 const SCHEDULES = {