Mercurial > gemma
annotate client/src/components/importconfiguration/types/Bottleneck.vue @ 2994:5124644494df
imports: send email when triggering file-upload for ubn, ufa, ugm
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 10 Apr 2019 15:00:22 +0200 |
parents | 8f266dc8b4e3 |
children | cb3b31566e48 |
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> | |
2994
5124644494df
imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents:
2979
diff
changeset
|
45 <div v-if="!directImport && !url" class="d-flex flex-row"> |
1992 | 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"> |
2603 | 54 <translate>Tolerance for snapping of waterway axis [m]</translate> |
2563
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" |
2603 | 62 min="0" |
2563
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
63 :value="tolerance" |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
64 /> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
65 </div> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
66 <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
|
67 <small |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
68 ><translate class="text-danger" |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
69 >Please enter a tolerance value</translate |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
70 ></small |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
71 > |
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> |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
74 </div> |
1992 | 75 </div> |
76 </template> | |
77 | |
78 <script> | |
2069 | 79 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
80 * without warranty, see README.md and license for details. | |
81 * | |
82 * SPDX-License-Identifier: AGPL-3.0-or-later | |
83 * License-Filename: LICENSES/AGPL-3.0.txt | |
84 * | |
2563
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
85 * Copyright (C) 2018, 2019 by via donau |
2069 | 86 * – Österreichische Wasserstraßen-Gesellschaft mbH |
87 * Software engineering by Intevation GmbH | |
88 * | |
89 * Author(s): | |
90 * Thomas Junk <thomas.junk@intevation.de> | |
2563
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
91 * Tom Gottfried <tom.gottfried@intevation.de> |
2069 | 92 */ |
1992 | 93 export default { |
1996 | 94 name: "bottleneckimport", |
2586
bc1b43885a4d
Expose axis snapping tolerance in bottleneck upload import
Tom Gottfried <tom@intevation.de>
parents:
2563
diff
changeset
|
95 props: ["url", "tolerance", "directImport"], |
1996 | 96 methods: { |
97 urlChanged(e) { | |
98 this.$emit("urlChanged", e.target.value); | |
2563
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
99 }, |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
100 toleranceChanged(e) { |
dc4fae4bdb8f
Expose axis snapping tolerance to users
Tom Gottfried <tom@intevation.de>
parents:
2269
diff
changeset
|
101 this.$emit("toleranceChanged", e.target.value); |
1996 | 102 } |
103 } | |
1992 | 104 }; |
105 </script> | |
106 | |
107 <style></style> |