comparison client/src/components/fairway/AvailableFairwayDepthDialogue.vue @ 3397:3675c60afd4f

afd: breadth->width
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 23 May 2019 10:55:57 +0200
parents 70605404f37d
children 01f64ee0831f
comparison
equal deleted inserted replaced
3396:169680c3698b 3397:3675c60afd4f
161 </div> 161 </div>
162 </div> 162 </div>
163 <div class="d-flex mt-2"> 163 <div class="d-flex mt-2">
164 <div class="d-flex flex-column w-50 mr-1"> 164 <div class="d-flex flex-column w-50 mr-1">
165 <small for="from" class="my-auto text-muted"> 165 <small for="from" class="my-auto text-muted">
166 <translate>Breadthlimit 1</translate> 166 <translate>Widthlimit 1</translate>
167 </small> 167 </small>
168 <input 168 <input
169 :key="3" 169 :key="3"
170 id="breadthLimit" 170 id="widthLimit"
171 v-model.number="breadthLimit1" 171 v-model.number="widthLimit1"
172 class="form-control form-control-sm" 172 class="form-control form-control-sm"
173 type="number" 173 type="number"
174 min="0" 174 min="0"
175 /> 175 />
176 </div> 176 </div>
177 <div class="d-flex flex-column w-50 mr-1"> 177 <div class="d-flex flex-column w-50 mr-1">
178 <small for="from" class="my-auto text-muted"> 178 <small for="from" class="my-auto text-muted">
179 <translate>Breadthlimit 2</translate> 179 <translate>Widthlimit 2</translate>
180 </small> 180 </small>
181 <input 181 <input
182 :key="4" 182 :key="4"
183 id="breadthLimit" 183 id="widthLimit"
184 v-model.number="breadthLimit2" 184 v-model.number="widthLimit2"
185 class="form-control form-control-sm" 185 class="form-control form-control-sm"
186 type="number" 186 type="number"
187 min="0" 187 min="0"
188 /> 188 />
189 </div> 189 </div>
234 */ 234 */
235 235
236 import app from "@/main"; 236 import app from "@/main";
237 import { displayError } from "@/lib/errors"; 237 import { displayError } from "@/lib/errors";
238 import { mapState, mapGetters } from "vuex"; 238 import { mapState, mapGetters } from "vuex";
239 import { FREQUENCIES } from "@/store/fairwayavailability"; 239 import { FREQUENCIES, LIMITINGFACTORS } from "@/store/fairwayavailability";
240 240
241 export default { 241 export default {
242 data() { 242 data() {
243 return { 243 return {
244 loading: false 244 loading: false
256 "to", 256 "to",
257 "frequency", 257 "frequency",
258 "LOS", 258 "LOS",
259 "depthlimit1", 259 "depthlimit1",
260 "depthlimit2", 260 "depthlimit2",
261 "breadthlimit1", 261 "widthlimit1",
262 "breadthlimit2" 262 "widthlimit2"
263 ]), 263 ]),
264 ...mapState("imports", [ 264 ...mapState("imports", [
265 "stretches", 265 "stretches",
266 "sections", 266 "sections",
267 "selectedStretchId", 267 "selectedStretchId",
325 }, 325 },
326 set(value) { 326 set(value) {
327 this.$store.commit("fairwayavailability/setDepthlimit2", value); 327 this.$store.commit("fairwayavailability/setDepthlimit2", value);
328 } 328 }
329 }, 329 },
330 breadthLimit1: { 330 widthLimit1: {
331 get() { 331 get() {
332 return this.breadthlimit1; 332 return this.widthlimit1;
333 }, 333 },
334 set(value) { 334 set(value) {
335 this.$store.commit("fairwayavailability/setBreadthlimit1", value); 335 this.$store.commit("fairwayavailability/setWidthlimit1", value);
336 } 336 }
337 }, 337 },
338 breadthLimit2: { 338 widthLimit2: {
339 get() { 339 get() {
340 return this.breadthlimit2; 340 return this.widthlimit2;
341 }, 341 },
342 set(value) { 342 set(value) {
343 this.$store.commit("fairwayavailability/setBreadthlimit2", value); 343 this.$store.commit("fairwayavailability/setWidthlimit2", value);
344 } 344 }
345 }, 345 },
346 selectedFrequency: { 346 selectedFrequency: {
347 get() { 347 get() {
348 return this.frequency; 348 return this.frequency;
538 }, 538 },
539 BOTTLENECKS: "bottlenecks", 539 BOTTLENECKS: "bottlenecks",
540 SECTIONS: "sections", 540 SECTIONS: "sections",
541 STRETCHES: "stretches", 541 STRETCHES: "stretches",
542 AVAILABLEFAIRWAYDEPTH: app.$gettext("Available Fairway Depth"), 542 AVAILABLEFAIRWAYDEPTH: app.$gettext("Available Fairway Depth"),
543 FREQUENCIES: FREQUENCIES 543 FREQUENCIES: FREQUENCIES,
544 LIMITINGFACTORS: LIMITINGFACTORS
544 }; 545 };
545 </script> 546 </script>