changeset 4410:3759b47f20f3

FD_import: change unit of depth to meter for consistency
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 17 Sep 2019 16:08:45 +0200
parents d6c38a22c71e
children 5826d4de0e40
files client/src/components/importconfiguration/ScheduledImports.vue client/src/components/importconfiguration/types/Fairwaydimensions.vue
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/ScheduledImports.vue	Tue Sep 17 16:06:54 2019 +0200
+++ b/client/src/components/importconfiguration/ScheduledImports.vue	Tue Sep 17 16:08:45 2019 +0200
@@ -718,7 +718,7 @@
       this.maxWidth = value;
     },
     setDepth(value) {
-      this.depth = value;
+      this.depth = parseInt(value * 100);
     },
     setSourceOrganization(value) {
       this.sourceOrganization = value;
--- a/client/src/components/importconfiguration/types/Fairwaydimensions.vue	Tue Sep 17 16:06:54 2019 +0200
+++ b/client/src/components/importconfiguration/types/Fairwaydimensions.vue	Tue Sep 17 16:08:45 2019 +0200
@@ -91,9 +91,10 @@
             @input="depthChanged"
             class="depth form-control form-control-sm"
             type="number"
-            :value="depth"
+            :value="depthInMeter"
+            step="0.1"
           />
-          <div class="ml-2 my-auto">cm</div>
+          <div class="ml-2 my-auto">m</div>
         </div>
         <div v-if="!depth" class="d-flex flex-row">
           <small
@@ -228,6 +229,9 @@
     }
   },
   computed: {
+    depthInMeter() {
+      return this.depth / 100;
+    },
     los: {
       get() {
         return this.LOS;