Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
4409:d6c38a22c71e | 4410:3759b47f20f3 |
---|---|
89 <div class="d-flex flex-row"> | 89 <div class="d-flex flex-row"> |
90 <input | 90 <input |
91 @input="depthChanged" | 91 @input="depthChanged" |
92 class="depth form-control form-control-sm" | 92 class="depth form-control form-control-sm" |
93 type="number" | 93 type="number" |
94 :value="depth" | 94 :value="depthInMeter" |
95 /> | 95 step="0.1" |
96 <div class="ml-2 my-auto">cm</div> | 96 /> |
97 <div class="ml-2 my-auto">m</div> | |
97 </div> | 98 </div> |
98 <div v-if="!depth" class="d-flex flex-row"> | 99 <div v-if="!depth" class="d-flex flex-row"> |
99 <small | 100 <small |
100 ><translate class="text-danger" | 101 ><translate class="text-danger" |
101 >Please enter a depth</translate | 102 >Please enter a depth</translate |
226 sourceOrganizationChanged(e) { | 227 sourceOrganizationChanged(e) { |
227 this.$emit("sourceOrganizationChanged", e.target.value); | 228 this.$emit("sourceOrganizationChanged", e.target.value); |
228 } | 229 } |
229 }, | 230 }, |
230 computed: { | 231 computed: { |
232 depthInMeter() { | |
233 return this.depth / 100; | |
234 }, | |
231 los: { | 235 los: { |
232 get() { | 236 get() { |
233 return this.LOS; | 237 return this.LOS; |
234 }, | 238 }, |
235 set(value) { | 239 set(value) { |