changeset 3714:73589ed481f5

import_soundingresults: send 'beam-type: multi-|single-beam'
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 20 Jun 2019 13:06:45 +0200
parents ac168fcf210e
children e1972355fcfb
files client/src/components/importconfiguration/types/Soundingresults.vue
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Soundingresults.vue	Thu Jun 20 12:54:35 2019 +0200
+++ b/client/src/components/importconfiguration/types/Soundingresults.vue	Thu Jun 20 13:06:45 2019 +0200
@@ -313,11 +313,7 @@
       if (this.depthReference)
         formData.append("depth-reference", this.depthReference);
       if (this.projection) formData.append("epsg", this.projection);
-      if (this.beamType)
-        formData.append(
-          "single-beam",
-          this.beamType === this.$options.BEAMTYPES.SINGLEBEAM
-        );
+      if (this.beamType) formData.append("beam-type", this.beamType);
 
       HTTP.post("/imports/sr", formData, {
         headers: {
@@ -430,8 +426,7 @@
               "depth-reference": this.depthReference,
               bottleneck: this.bottleneck.properties.objnam,
               date: this.importDate,
-              "single-beam":
-                this.beamType === this.$options.BEAMTYPES.SINGLEBEAM,
+              "beam-type": this.beamType,
               projection: this.projection
             })
           )
@@ -451,8 +446,8 @@
     }
   },
   BEAMTYPES: {
-    MULTIBEAM: "multibeam",
-    SINGLEBEAM: "singlebeam"
+    MULTIBEAM: "multi-beam",
+    SINGLEBEAM: "single-beam"
   },
   UPLOADLABEL: "choose a .zip or .txt file",
   on: "on",