annotate client/src/components/importconfiguration/ScheduledImports.vue @ 3012:802fcb50c484

search, contextbox: increased available area
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 11 Apr 2019 14:11:29 +0200
parents 23f4fb9a205a
children 439e1865a2d2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
2 <form @submit.prevent="save" class="w-100">
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
3 <div class="d-flex flex-row">
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
4 <div :key="1" class="flex-column mr-4">
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
5 <div class="flex-row text-left">
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
6 <small class="text-muted">
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
7 <translate>Email Notification</translate>
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
8 </small>
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
9 </div>
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
10 <div class="flex-flex-row text-left">
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
11 <toggle-button
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
12 v-model="eMailNotification"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
13 class="mt-2"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
14 :speed="100"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
15 :labels="{
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
16 checked: this.$options.on,
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
17 unchecked: this.$options.off
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
18 }"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
19 :width="60"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
20 :height="30"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
21 />
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
22 </div>
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 </div>
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
24 <div :key="2" v-if="directImportAvailable" class="flex-column text-left">
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
25 <div>
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
26 <small class="text-muted">
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
27 <translate>Import via</translate>
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
28 </small>
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
29 </div>
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
30 <div>
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
31 <!-- '#75c791' is the DEFAULT_COLOR_CHECKED
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
32 from vue-js-toggle-button as here both states are active -->
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
33 <toggle-button
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
34 :color="{ unchecked: '#75c791' }"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
35 v-model="directImport"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
36 class="mt-2"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
37 :speed="100"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
38 :labels="{
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
39 checked: this.$options.FILE,
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
40 unchecked: this.$options.URL
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
41 }"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
42 :width="60"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
43 :height="30"
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
44 />
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
45 </div>
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
46 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
47 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
48 <Availablefairwaydepth
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
49 v-if="
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
50 import_ == $options.IMPORTTYPES.FAIRWAYAVAILABILITY && !directImport
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
51 "
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
52 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
53 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
54 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
55 <Bottleneck
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
56 v-if="import_ == $options.IMPORTTYPES.BOTTLENECK"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
57 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
58 @toleranceChanged="setTolerance"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
59 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
60 :tolerance="tolerance"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
61 :directImport="directImport"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
62 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
63 <Distancemarksvirtual
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
64 v-if="import_ == $options.IMPORTTYPES.DISTANCEMARKSVIRTUAL"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
65 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
66 @usernameChanged="setUsername"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
67 @passwordChanged="setPassword"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
68 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
69 :username="username"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
70 :password="password"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
71 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
72 <Distancemarksashore
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
73 v-if="import_ == $options.IMPORTTYPES.DISTANCEMARKSASHORE"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
74 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
75 @featureTypeChanged="setFeatureType"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
76 @sortByChanged="setSortBy"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
77 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
78 :featureType="featureType"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
79 :sortBy="sortBy"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
80 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
81 <Faiwaydimensions
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
82 v-if="import_ == $options.IMPORTTYPES.FAIRWAYDIMENSION"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
83 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
84 @featureTypeChanged="setFeatureType"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
85 @sortByChanged="setSortBy"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
86 @LOSChanged="setLOS"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
87 @depthChanged="setDepth"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
88 @minWidthChanged="setMinWidth"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
89 @maxWidthChanged="setMaxWidth"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
90 @sourceOrganizationChanged="setSourceOrganization"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
91 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
92 :featureType="featureType"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
93 :sortBy="sortBy"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
94 :LOS="LOS"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
95 :minWidth="minWidth"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
96 :maxWidth="maxWidth"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
97 :sourceOrganization="sourceOrganization"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
98 :depth="depth"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
99 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
100 <Gaugemeasurement
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
101 v-if="import_ == $options.IMPORTTYPES.GAUGEMEASUREMENT && !directImport"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
102 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
103 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
104 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
105 <Waterwayarea
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
106 v-if="import_ == $options.IMPORTTYPES.WATERWAYAREA"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
107 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
108 @featureTypeChanged="setFeatureType"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
109 @sortByChanged="setSortBy"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
110 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
111 :featureType="featureType"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
112 :sortBy="sortBy"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
113 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
114 <Waterwaygauges
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
115 v-if="import_ == $options.IMPORTTYPES.WATERWAYGAUGES"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
116 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
117 @usernameChanged="setUsername"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
118 @passwordChanged="setPassword"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
119 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
120 :username="username"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
121 :password="password"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
122 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
123 <Waterwayaxis
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
124 v-if="import_ == $options.IMPORTTYPES.WATERWAYAXIS"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
125 @urlChanged="setUrl"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
126 @featureTypeChanged="setFeatureType"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
127 @sortByChanged="setSortBy"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
128 :url="url"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
129 :featureType="featureType"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
130 :sortBy="sortBy"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
131 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
132
2994
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
133 <div class="d-flex flex-row mt-3">
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
134 <template v-if="!directImport || !directImportAvailable">
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
135 <div class="flex-column mr-4">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
136 <div class="flex-row text-left">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
137 <small class="text-muted">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
138 <translate>Scheduled</translate>?
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
139 </small>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
140 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
141 <div class="flex-flex-row text-left">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
142 <toggle-button
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
143 v-model="scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
144 class="mt-2"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
145 :speed="100"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
146 :labels="{
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
147 checked: this.$options.on,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
148 unchecked: this.$options.off
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
149 }"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
150 :width="60"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
151 :height="30"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
152 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
153 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
154 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
155 <div class="flex-column mr-2">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
156 <div class="flex-row text-left">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
157 <small class="text-muted">
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
158 <translate>Simple</translate>
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
159 </small>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
160 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
161 <div class="flex-flex-row text-left">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
162 <toggle-button
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
163 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
164 v-model="easyCron"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
165 class="mt-2"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
166 :speed="100"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
167 :labels="{
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
168 checked: this.$options.on,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
169 unchecked: this.$options.off
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
170 }"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
171 :width="60"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
172 :height="30"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
173 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
174 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
175 </div>
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
176 <div class="ml-auto flex-column">
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
177 <div class="flex-row text-left">
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
178 <small class="text-muted">
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
179 <translate>Tries</translate>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
180 </small>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
181 </div>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
182 <div>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
183 <input
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
184 style="width:120px;"
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
185 v-model="trys"
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
186 class="mr-1 form-control"
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
187 type="number"
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
188 />
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
189 </div>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
190 </div>
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
191 <div class="flex-column">
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
192 <div class="flex-row text-left">
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
193 <small class="text-muted">
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
194 <translate>Wait to retry</translate>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
195 </small>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
196 </div>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
197 <div>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
198 <input
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
199 style="width:120px;"
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
200 v-model="waitRetry"
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
201 class="ml-1 form-control"
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
202 />
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
203 </div>
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
204 </div>
2994
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
205 </template>
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
206 </div>
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
207 <template v-if="!directImport || !directImportAvailable">
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
208 <div class="flex-column w-100 mr-2">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
209 <div class="flex-row text-left">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
210 <small class="text-muted">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
211 <translate>Schedule</translate>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
212 </small>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
213 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
214 <div v-if="easyCron" class="text-left w-50">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
215 <select :disabled="!scheduled" v-model="simple" class="form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
216 ><option value="weekly"><translate>Weekly</translate></option>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
217 <option value="monthly"><translate>Monthly</translate> </option>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
218 </select>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
219 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
220 <div v-if="!easyCron" class="text-left w-100">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
221 <div class="d-flex flex-row">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
222 <h4 class="mt-auto mb-auto mr-2">{{ $options.EVERY }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
223 <select
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
224 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
225 style="width: 130px;"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
226 v-model="cronMode"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
227 class="form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
228 @change="clearInputs"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
229 >
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
230 <option :value="null"></option>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
231 <option
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
232 v-for="(option, key) in $options.CRONMODE"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
233 :value="key"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
234 :key="key"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
235 >{{ option }}</option
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
236 >
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
237 </select>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
238 <div v-if="cronMode == 'hour'" class="ml-1 d-flex flex-row">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
239 <h4 class="mt-auto mb-auto">{{ $options.ON }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
240 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
241 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
242 v-model="minutes"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
243 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
244 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
245 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
246 <h4 class="mt-auto mb-auto">{{ $options.MINUTESPAST }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
247 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
248 <div v-if="cronMode == 'day'" class="ml-1 d-flex flex-row">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
249 <h4 class="mt-auto mb-auto">{{ $options.AT }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
250 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
251 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
252 v-model="hour"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
253 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
254 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
255 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
256 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
257 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
258 v-model="minutes"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
259 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
260 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
261 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
262 <h4 class="mt-auto mb-auto">{{ $options.OCLOCK }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
263 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
264 <div v-if="cronMode == 'week'" class="ml-1 d-flex flex-row">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
265 <h4 class="ml-1 mr-1 mt-auto mb-auto">{{ $options.ON }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
266 <select :disabled="!scheduled" v-model="day" class="form-control">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
267 <option
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
268 v-for="(option, key) in $options.DAYSOFWEEK"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
269 :key="key"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
270 :value="key"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
271 >{{ option }}</option
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
272 >
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
273 </select>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
274 <h4 class="ml-1 mt-auto mb-auto">{{ $options.AT }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
275 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
276 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
277 v-model="hour"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
278 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
279 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
280 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
281 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
282 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
283 v-model="minutes"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
284 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
285 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
286 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
287 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
288 <div v-if="cronMode == 'month'" class="ml-1 d-flex flex-row">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
289 <h4 class="ml-1 mt-auto mb-auto">{{ $options.ON }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
290 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
291 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
292 v-model="dayOfMonth"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
293 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
294 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
295 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
296 <h4 class="mt-auto mb-auto">{{ $options.AT }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
297 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
298 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
299 v-model="hour"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
300 class="cronfield ml-1 mr-2 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
301 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
302 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
303 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
304 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
305 v-model="minutes"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
306 class="cronfield ml-1 mr-2 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
307 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
308 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
309 <h4 class="mt-auto mb-auto">{{ $options.OCLOCK }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
310 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
311 <div v-if="cronMode == 'year'" class="ml-1 d-flex flex-row">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
312 <h4 class="ml-1 mt-auto mb-auto">{{ $options.ON }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
313 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
314 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
315 v-model="dayOfMonth"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
316 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
317 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
318 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
319 <h4 class="mt-auto mb-auto">{{ $options.OF }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
320 <select
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
321 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
322 v-model="month"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
323 class="ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
324 >
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
325 <option
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
326 v-for="(option, key) in $options.MONTHS"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
327 :value="key"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
328 :key="key"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
329 >{{ option }}</option
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
330 >
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
331 </select>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
332 <h4 class="mt-auto mb-auto">{{ $options.ON }}</h4>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
333 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
334 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
335 v-model="hour"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
336 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
337 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
338 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
339 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
340 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
341 v-model="minutes"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
342 class="cronfield ml-1 mr-1 form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
343 type="number"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
344 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
345 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
346 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
347 <div class="mt-3 w-50 d-flex flex-row">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
348 <h5 class="mt-auto mb-auto mr-2">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
349 <translate>Cronstring</translate>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
350 </h5>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
351 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
352 :disabled="!scheduled"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
353 class="form-control"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
354 v-model="cronString"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
355 type="text"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
356 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
357 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
358 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
359 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
360 </template>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
361 <div v-else class="d-flex flex-row text-left">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
362 <div class="mt-3 mb-3 flex-column w-100">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
363 <div class="custom-file">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
364 <input
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
365 accept=".xml"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
366 type="file"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
367 @change="fileSelected"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
368 class="custom-file-input"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
369 id="uploadFile"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
370 />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
371 <label class="pointer custom-file-label" for="uploadFile">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
372 {{ uploadLabel }}
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
373 </label>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
374 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
375 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
376 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
377 <div class="w-100 d-flex flex-row mt-3">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
378 <button
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
379 @click="triggerManualImport"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
380 type="button"
2994
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
381 class="shadow-sm btn btn-outline-info mr-auto"
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
382 :disabled="!triggerActive || !isValid"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
383 >
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
384 <font-awesome-icon class="fa-fw mr-2" fixed-width icon="play" />
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
385 <translate>Trigger import</translate>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
386 </button>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
387 <button
2994
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
388 v-if="!directImport || !directImportAvailable"
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
389 :disabled="!isValid"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
390 type="submit"
2994
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
391 class="shadow-sm btn btn-info mr-3"
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
392 >
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
393 <translate>Save</translate>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
394 </button>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
395 <button :key="1" @click="back()" class="btn btn-warning">
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
396 Back
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
397 </button>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
398 </div>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
399 </form>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
400 </template>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
401
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
402 <script>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
403 /* This is Free Software under GNU Affero General Public License v >= 3.0
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
404 * without warranty, see README.md and license for details.
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
405 *
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
406 * SPDX-License-Identifier: AGPL-3.0-or-later
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
407 * License-Filename: LICENSES/AGPL-3.0.txt
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
408 *
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
409 * Copyright (C) 2018, 2019 by via donau
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
410 * – Österreichische Wasserstraßen-Gesellschaft mbH
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
411 * Software engineering by Intevation GmbH
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
412 *
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
413 * Author(s):
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
414 * Thomas Junk <thomas.junk@intevation.de>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
415 * Tom Gottfried <tom.gottfried@intevation.de>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
416 */
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
417 import {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
418 IMPORTTYPES,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
419 IMPORTTYPEKIND,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
420 initializeCurrentSchedule
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
421 } from "@/store/importschedule";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
422 import { mapState } from "vuex";
2985
1b8bb4f89227 client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents: 2980
diff changeset
423 import { displayInfo, displayError } from "@/lib/errors";
1b8bb4f89227 client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents: 2980
diff changeset
424 import app from "@/main";
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
425 import { HTTP } from "@/lib/http";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
426
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
427 export default {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
428 name: "importscheduledetail",
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
429 components: {
2993
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
430 Availablefairwaydepth: () => import("./types/Availablefairwaydepth"),
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
431 Bottleneck: () => import("./types/Bottleneck"),
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
432 Distancemarksvirtual: () => import("./types/Distancemarksvirtual"),
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
433 Distancemarksashore: () => import("./types/Distancemarksashore"),
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
434 Faiwaydimensions: () => import("./types/Fairwaydimensions"),
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
435 Gaugemeasurement: () => import("./types/Gaugemeasurement"),
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
436 Waterwayarea: () => import("./types/Waterwayarea"),
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
437 Waterwaygauges: () => import("./types/Waterwaygauges"),
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
438 Waterwayaxis: () => import("./types/Waterwayaxis")
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
439 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
440 data() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
441 return {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
442 directImport: false,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
443 passwordVisible: false,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
444 uploadLabel: this.$gettext("choose file to upload"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
445 uploadFile: null,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
446 ...initializeCurrentSchedule()
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
447 };
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
448 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
449 mounted() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
450 this.initialize();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
451 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
452 watch: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
453 cronMode() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
454 this.cronString = this.calcCronString();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
455 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
456 minutes() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
457 this.cronString = this.calcCronString();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
458 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
459 hour() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
460 this.cronString = this.calcCronString();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
461 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
462 month() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
463 this.cronString = this.calcCronString();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
464 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
465 day() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
466 this.cronString = this.calcCronString();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
467 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
468 dayOfMonth() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
469 this.cronString = this.calcCronString();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
470 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
471 importScheduleDetailVisible() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
472 this.initialize();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
473 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
474 cronString() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
475 if (this.isWeekly(this.cronString)) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
476 this.simple = "weekly";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
477 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
478 if (this.isMonthly(this.cronString)) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
479 this.simple = "monthly";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
480 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
481 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
482 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
483 computed: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
484 ...mapState("importschedule", [
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
485 "importScheduleDetailVisible",
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
486 "currentSchedule"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
487 ]),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
488 import_() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
489 return this.currentSchedule.importType;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
490 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
491 dialogLabel() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
492 if (this.id) return this.$gettext("Import") + " " + this.id;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
493 return this.$gettext("New Import");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
494 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
495 directImportAvailable() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
496 switch (this.import_) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
497 case this.$options.IMPORTTYPES.BOTTLENECK:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
498 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
499 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
500 return true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
501 default:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
502 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
503 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
504 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
505 isCredentialsRequired() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
506 switch (this.import_) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
507 case this.$options.IMPORTTYPES.WATERWAYGAUGES:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
508 case this.$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
509 return true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
510 default:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
511 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
512 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
513 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
514 isURLRequired() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
515 switch (this.import_) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
516 case this.$options.IMPORTTYPES.BOTTLENECK:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
517 case this.$options.IMPORTTYPES.WATERWAYAXIS:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
518 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
519 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
520 case this.$options.IMPORTTYPES.WATERWAYAREA:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
521 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
522 case this.$options.IMPORTTYPES.WATERWAYGAUGES:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
523 case this.$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
524 case this.$options.IMPORTTYPES.DISTANCEMARKSASHORE:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
525 return true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
526 default:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
527 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
528 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
529 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
530 isFeatureTypeRequired() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
531 switch (this.import_) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
532 case this.$options.IMPORTTYPES.WATERWAYAXIS:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
533 case this.$options.IMPORTTYPES.WATERWAYAREA:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
534 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
535 case this.$options.IMPORTTYPES.DISTANCEMARKSASHORE:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
536 return true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
537 default:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
538 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
539 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
540 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
541 isSortbyRequired() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
542 switch (this.import_) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
543 case this.$options.IMPORTTYPES.WATERWAYAXIS:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
544 case this.$options.IMPORTTYPES.WATERWAYAREA:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
545 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
546 case this.$options.IMPORTTYPES.DISTANCEMARKSASHORE:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
547 return true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
548 default:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
549 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
550 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
551 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
552 isToleranceRequired() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
553 switch (this.import_) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
554 case this.$options.IMPORTTYPES.BOTTLENECK:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
555 return true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
556 default:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
557 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
558 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
559 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
560 isValid() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
561 if (!this.import_) return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
562 if (this.isToleranceRequired && !this.tolerance) return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
563 if (this.directImport && !this.uploadFile) return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
564 else if (!this.directImport) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
565 if (this.isURLRequired && !this.url) return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
566 if (this.isSortbyRequired && !this.sortBy) return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
567 if (this.isFeatureTypeRequired && !this.featureType) return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
568 if (this.isCredentialsRequired && (!this.username || !this.password))
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
569 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
570 if (this.import_ == this.$options.IMPORTTYPES.FAIRWAYDIMENSION) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
571 if (
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
572 !this.LOS ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
573 !this.minWidth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
574 !this.maxWidth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
575 !this.depth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
576 !this.sourceOrganization
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
577 )
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
578 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
579 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
580 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
581 return true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
582 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
583 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
584 methods: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
585 back() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
586 this.$store.commit("importschedule/setListMode");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
587 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
588 fileSelected(e) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
589 const files = e.target.files || e.dataTransfer.files;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
590 if (!files) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
591 this.uploadLabel = files[0].name;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
592 this.uploadFile = files[0];
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
593 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
594 setUrl(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
595 this.url = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
596 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
597 setFeatureType(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
598 this.featureType = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
599 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
600 setSortBy(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
601 this.sortBy = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
602 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
603 setTolerance(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
604 this.tolerance = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
605 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
606 setUsername(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
607 this.username = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
608 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
609 setPassword(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
610 this.password = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
611 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
612 setLOS(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
613 this.LOS = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
614 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
615 setMinWidth(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
616 this.minWidth = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
617 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
618 setMaxWidth(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
619 this.maxWidth = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
620 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
621 setDepth(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
622 this.depth = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
623 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
624 setSourceOrganization(value) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
625 this.sourceOrganization = value;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
626 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
627 calcCronString() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
628 let getValue = value => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
629 return this[value] !== null ? this[value] : "*";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
630 };
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
631
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
632 const min = getValue("minutes");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
633 const h = getValue("hour");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
634 const dm = getValue("dayOfMonth");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
635 const m = getValue("month");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
636 const wd = getValue("day");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
637
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
638 if (this.cronMode === "15minutes") return "0 */15 * * * *";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
639 if (this.cronMode === "hour") return `0 ${min} * * * *`;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
640 if (this.cronMode === "day") return `0 ${min} ${h} * * *`;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
641 if (this.cronMode === "week") return `0 ${min} ${h} * * ${wd}`;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
642 if (this.cronMode === "month") return `0 ${min} ${h} ${dm} * *`;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
643 if (this.cronMode === "year") return `0 ${min} ${h} ${dm} ${m} *`;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
644 return this.cronString;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
645 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
646 validateBottleneckfields() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
647 return !!this.url;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
648 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
649 initialize() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
650 this.id = this.currentSchedule.id;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
651 this.importType = this.currentSchedule.importType;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
652 this.schedule = this.currentSchedule.schedule;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
653 this.scheduled = this.currentSchedule.scheduled;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
654 this.importSource = this.currentSchedule.importSource;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
655 this.eMailNotification = this.currentSchedule.eMailNotification;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
656 this.easyCron = this.currentSchedule.easyCron;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
657 this.cronMode = this.currentSchedule.cronMode;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
658 this.minutes = this.currentSchedule.minutes;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
659 this.month = this.currentSchedule.month;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
660 this.hour = this.currentSchedule.hour;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
661 this.day = this.currentSchedule.day;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
662 this.dayOfMonth = this.currentSchedule.dayOfMonth;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
663 this.simple = this.currentSchedule.simple;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
664 this.url = this.currentSchedule.url;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
665 this.insecure = this.currentSchedule.insecure;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
666 this.cronString = this.currentSchedule.cronString;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
667 this.featureType = this.currentSchedule.featureType;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
668 this.sortBy = this.currentSchedule.sortBy;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
669 this.tolerance = this.currentSchedule.tolerance;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
670 this.username = this.currentSchedule.username;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
671 this.password = this.currentSchedule.password;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
672 this.LOS = this.currentSchedule.LOS;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
673 this.minWidth = this.currentSchedule.minWidth;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
674 this.maxWidth = this.currentSchedule.maxWidth;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
675 this.depth = this.currentSchedule.depth;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
676 this.sourceOrganization = this.currentSchedule.sourceOrganization;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
677 this.directImport = false;
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
678 this.trys = this.currentSchedule.trys;
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
679 this.waitRetry = this.currentSchedule.waitRetry;
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
680 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
681 isWeekly(cron) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
682 return /0 \d{1,2} \d{1,2} \* \* \d{1}/.test(cron);
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
683 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
684 isMonthly(cron) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
685 return /0 \d{1,2} \d{1,2} \d{1,2} \* \*/.test(cron);
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
686 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
687 clearInputs() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
688 this.minutes = this.currentSchedule.minutes;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
689 this.month = this.currentSchedule.month;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
690 this.hour = this.currentSchedule.hour;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
691 this.day = this.currentSchedule.day;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
692 this.dayOfMonth = this.currentSchedule.dayOfMonth;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
693 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
694 triggerFileUpload() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
695 if (!this.uploadFile) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
696 let formData = new FormData();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
697 let routeParam = "";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
698 switch (this.import_) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
699 case this.$options.IMPORTTYPES.BOTTLENECK:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
700 formData.append("tolerance", this.tolerance);
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
701 routeParam = "ubn";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
702 break;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
703 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
704 routeParam = "ufa";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
705 break;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
706 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
707 routeParam = "ugm";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
708 break;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
709 default:
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
710 throw new Error("invalid importroute");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
711 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
712
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
713 formData.append(routeParam, this.uploadFile);
2994
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
714 if (this.eMailNotification) {
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
715 formData.append("send-email", this.eMailNotification);
5124644494df imports: send email when triggering file-upload for ubn, ufa, ugm
Thomas Junk <thomas.junk@intevation.de>
parents: 2993
diff changeset
716 }
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
717 HTTP.post("/imports/" + routeParam, formData, {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
718 headers: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
719 "X-Gemma-Auth": localStorage.getItem("token"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
720 "Content-Type": "multipart/form-data"
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
721 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
722 })
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
723 .then(response => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
724 const { id } = response.data;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
725 displayInfo({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
726 title: this.$gettext("File Import"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
727 message: this.$gettext("Import import: #") + id
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
728 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
729 this.closeDetailview();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
730 this.$store.dispatch("importschedule/loadSchedules").catch(error => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
731 const { status, data } = error.response;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
732 displayError({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
733 title: this.gettext("Backend Error"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
734 message: `${status}: ${data.message || data}`
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
735 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
736 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
737 })
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
738 .catch(error => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
739 const { status, data } = error.response;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
740 displayError({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
741 title: this.$gettext("Backend Error"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
742 message: `${status}: ${data.message || data}`
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
743 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
744 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
745 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
746 triggerManualImport() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
747 if (!this.triggerActive) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
748 if (!this.import_) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
749 if (this.directImport) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
750 if (!this.uploadFile) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
751 this.triggerFileUpload();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
752 return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
753 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
754 let data = {};
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
755 if (this.isURLRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
756 if (!this.url) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
757 data["url"] = this.url;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
758 data["insecure"] = this.insecure;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
759 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
760 if (this.isFeatureTypeRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
761 if (!this.featureType) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
762 data["feature-type"] = this.featureType;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
763 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
764 if (this.isSortbyRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
765 if (!this.sortBy) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
766 data["sort-by"] = this.sortBy;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
767 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
768 if (this.isToleranceRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
769 if (!this.tolerance) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
770 data["tolerance"] = parseFloat(this.tolerance);
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
771 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
772 if (this.isCredentialsRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
773 if (!this.username || !this.password) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
774 data["user"] = this.username;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
775 data["password"] = this.password;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
776 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
777 if (this.import_ == this.$options.IMPORTTYPES.FAIRWAYDIMENSION) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
778 if (
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
779 !this.LOS ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
780 !this.minWidth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
781 !this.maxWidth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
782 !this.depth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
783 !this.sourceOrganization
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
784 )
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
785 return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
786 data["feature-type"] = this.featureType;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
787 data["sort-by"] = this.sortBy;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
788 data["los"] = this.LOS * 1;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
789 data["min-width"] = this.minWidth * 1;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
790 data["max-width"] = this.maxWidth * 1;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
791 data["depth"] = this.depth * 1;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
792 data["source-organization"] = this.sourceOrganization;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
793 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
794 data["send-email"] = this.eMailNotification;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
795 this.triggerActive = false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
796 this.$store
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
797 .dispatch("importschedule/triggerImport", {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
798 type: IMPORTTYPEKIND[this.import_],
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
799 data
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
800 })
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
801 .then(response => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
802 const { id } = response.data;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
803 displayInfo({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
804 title: this.$gettext("Import"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
805 message: this.$gettext("Manually triggered import: #") + id
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
806 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
807 })
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
808 .catch(error => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
809 const { status, data } = error.response;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
810 displayError({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
811 title: this.$gettext("Backend Error"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
812 message: `${status}: ${data.message || data}`
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
813 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
814 })
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
815 .finally(() => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
816 this.triggerActive = true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
817 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
818 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
819 save() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
820 if (!this.import_) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
821 let cron = this.cronString;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
822 if (this.easyCron) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
823 if (this.simple === "weekly") cron = "0 0 0 * * 0";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
824 if (this.simple === "monthly") cron = "0 0 0 1 * *";
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
825 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
826 let data = {};
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
827 let config = {};
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
828 data["kind"] = IMPORTTYPEKIND[this.import_];
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
829
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
830 if (this.isURLRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
831 if (!this.url) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
832 config["url"] = this.url;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
833 config["insecure"] = this.insecure;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
834 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
835 if (this.isSortbyRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
836 if (!this.sortBy) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
837 config["sort-by"] = this.sortBy;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
838 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
839 if (this.isFeatureTypeRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
840 if (!this.featureType) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
841 config["feature-type"] = this.featureType;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
842 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
843 if (this.isToleranceRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
844 if (!this.tolerance) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
845 config["tolerance"] = parseFloat(this.tolerance);
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
846 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
847 if (this.isCredentialsRequired) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
848 if (!this.username || !this.password) return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
849 config = {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
850 ...config,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
851 user: this.username,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
852 password: this.password
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
853 };
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
854 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
855 if (this.import_ == this.$options.IMPORTTYPES.FAIRWAYDIMENSION) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
856 if (
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
857 !this.LOS ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
858 !this.minWidth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
859 !this.maxWidth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
860 !this.depth ||
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
861 !this.sourceOrganization
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
862 )
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
863 return;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
864 config = { ...config, los: this.LOS, depth: this.depth };
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
865 config["min-width"] = this.minWidth;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
866 config["max-width"] = this.maxWidth;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
867 config["source-organization"] = this.sourceOrganization;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
868 }
2998
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
869 if (this.scheduled) {
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
870 config["cron"] = cron;
adc8e9ccf706 imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents: 2994
diff changeset
871 }
3001
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
872 if (this.waitRetry) config["wait-retry"] = this.waitRetry;
23f4fb9a205a imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents: 2998
diff changeset
873 if (this.trys) config["trys"] = Number(this.trys);
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
874 config["send-email"] = this.eMailNotification;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
875 if (!this.id) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
876 data["config"] = config;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
877 this.$store
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
878 .dispatch("importschedule/saveCurrentSchedule", data)
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
879 .then(response => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
880 const { id } = response.data;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
881 displayInfo({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
882 title: this.$gettext("Import"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
883 message: this.$gettext("Saved import: #") + id
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
884 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
885 this.closeDetailview();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
886 this.$store
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
887 .dispatch("importschedule/loadSchedules")
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
888 .catch(error => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
889 const { status, data } = error.response;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
890 displayError({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
891 title: this.gettext("Backend Error"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
892 message: `${status}: ${data.message || data}`
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
893 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
894 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
895 })
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
896 .catch(error => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
897 const { status, data } = error.response;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
898 displayError({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
899 title: this.$gettext("Backend Error"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
900 message: `${status}: ${data.message || data}`
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
901 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
902 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
903 } else {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
904 this.$store
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
905 .dispatch("importschedule/updateCurrentSchedule", {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
906 data: config,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
907 id: this.id
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
908 })
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
909 .then(response => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
910 const { id } = response.data;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
911 displayInfo({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
912 title: this.$gettext("Import"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
913 message: this.$gettext("update import: #") + id
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
914 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
915 this.closeDetailview();
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
916 this.$store
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
917 .dispatch("importschedule/loadSchedules")
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
918 .catch(error => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
919 const { status, data } = error.response;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
920 displayError({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
921 title: this.gettext("Backend Error"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
922 message: `${status}: ${data.message || data}`
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
923 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
924 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
925 })
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
926 .catch(error => {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
927 const { status, data } = error.response;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
928 displayError({
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
929 title: this.$gettext("Backend Error"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
930 message: `${status}: ${data.message || data}`
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
931 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
932 });
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
933 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
934 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
935 closeDetailview() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
936 this.$store.commit("importschedule/clearCurrentSchedule");
2980
a9b61290fcc2 unified_imports: edit capabilities added
Thomas Junk <thomas.junk@intevation.de>
parents: 2979
diff changeset
937 this.$store.commit("importschedule/setListMode");
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
938 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
939 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
940 IMPORTTYPES: IMPORTTYPES,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
941 on: "on",
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
942 off: "off",
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
943 FILE: app.$gettext("File"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
944 URL: app.$gettext("URL"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
945 EVERY: app.$gettext("Every"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
946 MINUTESPAST: app.$gettext("minutes past"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
947 ON: app.$gettext("on"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
948 OF: app.$gettext("of"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
949 AT: app.$gettext("at"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
950 OCLOCK: app.$gettext("o' clock"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
951 CRONMODE: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
952 "15minutes": app.$gettext("15 minutes"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
953 hour: app.$gettext("hour"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
954 day: app.$gettext("day"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
955 week: app.$gettext("week"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
956 month: app.$gettext("month"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
957 year: app.$gettext("year")
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
958 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
959 DAYSOFWEEK: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
960 1: app.$gettext("Monday"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
961 2: app.$gettext("Tuesday"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
962 3: app.$gettext("Wednesday"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
963 4: app.$gettext("Thursday"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
964 5: app.$gettext("Friday"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
965 6: app.$gettext("Saturday"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
966 0: app.$gettext("Sunday")
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
967 },
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
968 MONTHS: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
969 1: app.$gettext("January"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
970 2: app.$gettext("February"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
971 3: app.$gettext("March"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
972 4: app.$gettext("April"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
973 5: app.$gettext("May"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
974 6: app.$gettext("June"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
975 7: app.$gettext("July"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
976 8: app.$gettext("August"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
977 9: app.$gettext("September"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
978 10: app.$gettext("October"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
979 11: app.$gettext("November"),
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
980 12: app.$gettext("December")
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
981 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
982 };
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
983 </script>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
984
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
985 <style lang="scss" scoped>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
986 .cronfield {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
987 width: 55px;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
988 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
989
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
990 .importscheduledetailscard {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
991 min-height: 550px;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
992 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
993
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
994 .importscheduledetails {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
995 width: 100%;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
996 margin-top: $offset;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
997 margin-right: $offset;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
998 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
999 </style>