diff client/src/components/importconfiguration/types/Fairwaydimensions.vue @ 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 439e1865a2d2
children 1ff56484db4e
line wrap: on
line diff
--- 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;