Mercurial > gemma
comparison client/src/components/importschedule/importtypes/Bottleneck.vue @ 2563:dc4fae4bdb8f
Expose axis snapping tolerance to users
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 08 Mar 2019 19:15:47 +0100 |
parents | dfa4db82e784 |
children | bc1b43885a4d |
comparison
equal
deleted
inserted
replaced
2562:ce39e9954e85 | 2563:dc4fae4bdb8f |
---|---|
43 <div v-if="!url" class="d-flex flex-row"> | 43 <div v-if="!url" class="d-flex flex-row"> |
44 <small | 44 <small |
45 ><translate class="text-danger">Please enter a URL</translate></small | 45 ><translate class="text-danger">Please enter a URL</translate></small |
46 > | 46 > |
47 </div> | 47 </div> |
48 <div class="d-flex flex-row"> | |
49 <div class="flex-column mt-3 mr-3 w-50"> | |
50 <div class="flex-row text-left"> | |
51 <small class="text-muted"> | |
52 <translate>Tolerance for snapping of waterway axis</translate> | |
53 </small> | |
54 </div> | |
55 <div class="w-100"> | |
56 <input | |
57 @input="toleranceChanged" | |
58 class="tolerance form-control" | |
59 type="number" | |
60 :value="tolerance" | |
61 /> | |
62 </div> | |
63 <div v-if="!tolerance" class="d-flex flex-row"> | |
64 <small | |
65 ><translate class="text-danger" | |
66 >Please enter a tolerance value</translate | |
67 ></small | |
68 > | |
69 </div> | |
70 </div> | |
71 </div> | |
48 </div> | 72 </div> |
49 </template> | 73 </template> |
50 | 74 |
51 <script> | 75 <script> |
52 /* This is Free Software under GNU Affero General Public License v >= 3.0 | 76 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
53 * without warranty, see README.md and license for details. | 77 * without warranty, see README.md and license for details. |
54 * | 78 * |
55 * SPDX-License-Identifier: AGPL-3.0-or-later | 79 * SPDX-License-Identifier: AGPL-3.0-or-later |
56 * License-Filename: LICENSES/AGPL-3.0.txt | 80 * License-Filename: LICENSES/AGPL-3.0.txt |
57 * | 81 * |
58 * Copyright (C) 2018 by via donau | 82 * Copyright (C) 2018, 2019 by via donau |
59 * – Österreichische Wasserstraßen-Gesellschaft mbH | 83 * – Österreichische Wasserstraßen-Gesellschaft mbH |
60 * Software engineering by Intevation GmbH | 84 * Software engineering by Intevation GmbH |
61 * | 85 * |
62 * Author(s): | 86 * Author(s): |
63 * Thomas Junk <thomas.junk@intevation.de> | 87 * Thomas Junk <thomas.junk@intevation.de> |
88 * Tom Gottfried <tom.gottfried@intevation.de> | |
64 */ | 89 */ |
65 export default { | 90 export default { |
66 name: "bottleneckimport", | 91 name: "bottleneckimport", |
67 props: ["url"], | 92 props: ["url", "tolerance"], |
68 methods: { | 93 methods: { |
69 urlChanged(e) { | 94 urlChanged(e) { |
70 this.$emit("urlChanged", e.target.value); | 95 this.$emit("urlChanged", e.target.value); |
96 }, | |
97 toleranceChanged(e) { | |
98 this.$emit("toleranceChanged", e.target.value); | |
71 } | 99 } |
72 } | 100 } |
73 }; | 101 }; |
74 </script> | 102 </script> |
75 | 103 |