Mercurial > gemma
annotate client/src/components/importschedule/importtypes/Bottleneck.vue @ 2586:bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Mon, 11 Mar 2019 17:31:39 +0100 |
parents | dc4fae4bdb8f |
children | 8d767359fddb |
rev | line source |
---|---|
1992 | 1 <template> |
2 <div> | |
3 <div class="d-flex flex-row"> | |
4 <div class="flex-column mt-3 mr-3 w-100"> | |
2586
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
5 <template v-if="!directImport"> |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
6 <div class="flex-row text-left"> |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
7 <small class="text-muted"> <translate>URL</translate> </small> |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
8 </div> |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
9 <div class="w-100"> |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
10 <input |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
11 @input="urlChanged" |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
12 class="url form-control" |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
13 type="url" |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
14 :value="url" |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
15 /> |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
16 </div> |
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
17 </template> |
1992 | 18 </div> |
19 <div v-if="false" class="flex-column mt-3 text-left"> | |
20 <div class="d-flex flex-row"> | |
21 <small class="text-muted mr-2" | |
22 ><translate>Insecure</translate> | |
23 </small> | |
24 </div> | |
25 <div class="d-flex flex-row"> | |
26 <toggle-button | |
27 v-model="insecure" | |
28 class="mt-2" | |
29 :speed="100" | |
30 :color="{ | |
31 checked: '#FF0000', | |
32 unchecked: '#E9ECEF', | |
33 disabled: '#CCCCCC' | |
34 }" | |
35 :labels="{ | |
36 checked: this.$options.on, | |
37 unchecked: this.$options.off | |
38 }" | |
39 :width="60" | |
40 :height="30" | |
41 /> | |
42 </div> | |
43 </div> | |
44 </div> | |
45 <div v-if="!url" class="d-flex flex-row"> | |
46 <small | |
47 ><translate class="text-danger">Please enter a URL</translate></small | |
48 > | |
49 </div> | |
2563
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
50 <div class="d-flex flex-row"> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
51 <div class="flex-column mt-3 mr-3 w-50"> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
52 <div class="flex-row text-left"> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
53 <small class="text-muted"> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
54 <translate>Tolerance for snapping of waterway axis</translate> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
55 </small> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
56 </div> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
57 <div class="w-100"> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
58 <input |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
59 @input="toleranceChanged" |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
60 class="tolerance form-control" |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
61 type="number" |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
62 :value="tolerance" |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
63 /> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
64 </div> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
65 <div v-if="!tolerance" class="d-flex flex-row"> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
66 <small |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
67 ><translate class="text-danger" |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
68 >Please enter a tolerance value</translate |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
69 ></small |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
70 > |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
71 </div> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
72 </div> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
73 </div> |
1992 | 74 </div> |
75 </template> | |
76 | |
77 <script> | |
2069 | 78 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
79 * without warranty, see README.md and license for details. | |
80 * | |
81 * SPDX-License-Identifier: AGPL-3.0-or-later | |
82 * License-Filename: LICENSES/AGPL-3.0.txt | |
83 * | |
2563
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
84 * Copyright (C) 2018, 2019 by via donau |
2069 | 85 * – Österreichische Wasserstraßen-Gesellschaft mbH |
86 * Software engineering by Intevation GmbH | |
87 * | |
88 * Author(s): | |
89 * Thomas Junk <thomas.junk@intevation.de> | |
2563
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
90 * Tom Gottfried <tom.gottfried@intevation.de> |
2069 | 91 */ |
1992 | 92 export default { |
1996 | 93 name: "bottleneckimport", |
2586
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
94 props: ["url", "tolerance", "directImport"], |
1996 | 95 methods: { |
96 urlChanged(e) { | |
97 this.$emit("urlChanged", e.target.value); | |
2563
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
98 }, |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
99 toleranceChanged(e) { |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
100 this.$emit("toleranceChanged", e.target.value); |
1996 | 101 } |
102 } | |
1992 | 103 }; |
104 </script> | |
105 | |
106 <style></style> |