Mercurial > gemma
annotate client/src/components/importconfiguration/ScheduledImports.vue @ 5454:b4216db975e3 uiimprovements
fix layout for contextbox content.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 14 Jul 2021 16:21:27 +0200 |
parents | 064ac1014713 |
children | 1faca2dd45d2 |
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"> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
3 <div class="d-flex px-2"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
4 <div :key="1" class="flex-column"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
5 <small class="text-muted"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
6 <translate>Email Notification</translate> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
7 </small> |
3001
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
8 <div class="flex-flex-row text-left"> |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
9 <toggle-button |
3427
489e583498e3
client: import config: fixed toggle buttons
Markus Kottlaender <markus@intevation.de>
parents:
3281
diff
changeset
|
10 :value="eMailNotification" |
3001
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
11 v-model="eMailNotification" |
3427
489e583498e3
client: import config: fixed toggle buttons
Markus Kottlaender <markus@intevation.de>
parents:
3281
diff
changeset
|
12 :sync="true" |
3001
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> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
24 <div |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
25 :key="2" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
26 v-if="directImportAvailable" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
27 class="flex-column text-left ml-3" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
28 > |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
29 <small class="text-muted"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
30 <translate>Import via</translate> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
31 </small> |
3001
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
32 <div> |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
33 <!-- '#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
|
34 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
|
35 <toggle-button |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
36 :color="{ unchecked: '#75c791' }" |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
37 v-model="directImport" |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
38 class="mt-2" |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
39 :speed="100" |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
40 :labels="{ |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
41 checked: this.$options.FILE, |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
42 unchecked: this.$options.URL |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
43 }" |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
44 :width="60" |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
45 :height="30" |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
46 /> |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
47 </div> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
48 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
49 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
50 <Availablefairwaydepth |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
51 v-if=" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
52 import_ == $options.IMPORTTYPES.FAIRWAYAVAILABILITY && !directImport |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
53 " |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
54 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
55 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
56 /> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
57 <Bottleneck |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
58 v-if="import_ == $options.IMPORTTYPES.BOTTLENECK" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
59 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
60 @toleranceChanged="setTolerance" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
61 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
62 :tolerance="tolerance" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
63 :directImport="directImport" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
64 /> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
65 <Distancemarksvirtual |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
66 v-if="import_ == $options.IMPORTTYPES.DISTANCEMARKSVIRTUAL" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
67 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
68 @usernameChanged="setUsername" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
69 @passwordChanged="setPassword" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
70 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
71 :username="username" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
72 :password="password" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
73 /> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
74 <Distancemarksashore |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
75 v-if="import_ == $options.IMPORTTYPES.DISTANCEMARKSASHORE" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
76 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
77 @featureTypeChanged="setFeatureType" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
78 @sortByChanged="setSortBy" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
79 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
80 :featureType="featureType" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
81 :sortBy="sortBy" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
82 /> |
5396
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
83 <DQLReport |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
84 v-if="import_ == $options.IMPORTTYPES.REPORT" |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
85 @reportNameChanged="setReportName" |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
86 :reportName="reportName" |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
87 :availableReports="availableReports" |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
88 /> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
89 <Faiwaydimensions |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
90 v-if="import_ == $options.IMPORTTYPES.FAIRWAYDIMENSION" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
91 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
92 @featureTypeChanged="setFeatureType" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
93 @sortByChanged="setSortBy" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
94 @LOSChanged="setLOS" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
95 @depthChanged="setDepth" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
96 @minWidthChanged="setMinWidth" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
97 @maxWidthChanged="setMaxWidth" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
98 @sourceOrganizationChanged="setSourceOrganization" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
99 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
100 :featureType="featureType" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
101 :sortBy="sortBy" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
102 :LOS="LOS" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
103 :minWidth="minWidth" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
104 :maxWidth="maxWidth" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
105 :sourceOrganization="sourceOrganization" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
106 :depth="depth" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
107 /> |
4870
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
108 <Fairwaymarks |
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
109 v-if="import_ == $options.IMPORTTYPES.FAIRWAYMARKS" |
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
110 @urlChanged="setUrl" |
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
111 @featureTypeChanged="setFeatureType" |
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
112 @sortByChanged="setSortBy" |
4901
1f2d90312ac6
added dropdown to FM import to further specify the kind of fairwaymark to be imported
Thomas Junk <thomas.junk@intevation.de>
parents:
4870
diff
changeset
|
113 @selectedMarkChanged="setSelectedMark" |
4916
d456621404c2
Make fairwaymark imports editable again.
Thomas Junk <thomas.junk@intevation.de>
parents:
4910
diff
changeset
|
114 :isUpdate="!this.id" |
4870
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
115 :url="url" |
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
116 :featureType="featureType" |
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
117 :sortBy="sortBy" |
4901
1f2d90312ac6
added dropdown to FM import to further specify the kind of fairwaymark to be imported
Thomas Junk <thomas.junk@intevation.de>
parents:
4870
diff
changeset
|
118 :mark="selectedMark" |
4870
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
119 /> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
120 <Gaugemeasurement |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
121 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
|
122 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
123 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
124 /> |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
125 <Statsupdate |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
126 v-if="import_ == $options.IMPORTTYPES.STATSUPDATE && !directImport" |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
127 @statsUpdateChanged="setStatsUpdate" |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
128 :statsUpdate="statsUpdate" |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
129 /> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
130 <Waterwayarea |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
131 v-if="import_ == $options.IMPORTTYPES.WATERWAYAREA" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
132 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
133 @featureTypeChanged="setFeatureType" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
134 @sortByChanged="setSortBy" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
135 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
136 :featureType="featureType" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
137 :sortBy="sortBy" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
138 /> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
139 <Waterwaygauges |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
140 v-if="import_ == $options.IMPORTTYPES.WATERWAYGAUGES" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
141 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
142 @usernameChanged="setUsername" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
143 @passwordChanged="setPassword" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
144 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
145 :username="username" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
146 :password="password" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
147 /> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
148 <Waterwayaxis |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
149 v-if="import_ == $options.IMPORTTYPES.WATERWAYAXIS" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
150 @urlChanged="setUrl" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
151 @featureTypeChanged="setFeatureType" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
152 @sortByChanged="setSortBy" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
153 :url="url" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
154 :featureType="featureType" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
155 :sortBy="sortBy" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
156 /> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
157 |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
158 <template v-if="!directImport || !directImportAvailable"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
159 <div class="d-flex p-2"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
160 <div class="flex-column w-50"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
161 <div class="d-flex flex-row"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
162 <div class="flex-column mr-4"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
163 <div class="flex-row text-left"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
164 <small class="text-muted"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
165 <translate>Scheduled</translate>? |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
166 </small> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
167 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
168 <div class="flex-row text-left"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
169 <toggle-button |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
170 :value="scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
171 v-model="scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
172 :sync="true" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
173 class="mt-2" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
174 :speed="100" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
175 :labels="{ |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
176 checked: this.$options.on, |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
177 unchecked: this.$options.off |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
178 }" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
179 :width="60" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
180 :height="30" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
181 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
182 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
183 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
184 <div class="flex-column mr-2"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
185 <div class="flex-row text-left"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
186 <small class="text-muted"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
187 <translate>Simple</translate> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
188 </small> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
189 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
190 <div class="flex-flex-row text-left"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
191 <toggle-button |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
192 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
193 :value="easyCron" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
194 v-model="easyCron" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
195 :sync="true" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
196 class="mt-2" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
197 :speed="100" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
198 :labels="{ |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
199 checked: this.$options.on, |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
200 unchecked: this.$options.off |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
201 }" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
202 :width="60" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
203 :height="30" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
204 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
205 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
206 </div> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
207 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
208 </div> |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
209 <div class="flex-column ml-2"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
210 <div class="ml-auto flex-column"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
211 <div class="flex-row text-left"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
212 <small class="text-muted"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
213 <translate>Retry on failure</translate> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
214 </small> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
215 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
216 <div class="flex-row text-left"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
217 <toggle-button |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
218 :value="retry" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
219 v-model="retry" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
220 :sync="true" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
221 class="mt-2" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
222 :speed="100" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
223 :labels="{ |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
224 checked: this.$options.on, |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
225 unchecked: this.$options.off |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
226 }" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
227 v-tooltip.bottom="ttRetry" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
228 :width="60" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
229 :height="30" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
230 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
231 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
232 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
233 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
234 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
235 </template> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
236 <template v-if="!directImport || !directImportAvailable"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
237 <div class="d-flex flex-row"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
238 <div class="flex-column w-50 px-2 pb-3"> |
2998
adc8e9ccf706
imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents:
2994
diff
changeset
|
239 <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
|
240 <small class="text-muted"> |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
241 <translate>Schedule</translate> |
2998
adc8e9ccf706
imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents:
2994
diff
changeset
|
242 </small> |
adc8e9ccf706
imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents:
2994
diff
changeset
|
243 </div> |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
244 <div v-if="easyCron" class="text-left w-100"> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
245 <select |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
246 :disabled="!scheduled" |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
247 v-model="simple" |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
248 class="form-control form-control-sm" |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
249 > |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
250 <option value="weekly"><translate>Weekly</translate></option> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
251 <option value="monthly"><translate>Monthly</translate> </option> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
252 </select> |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
253 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
254 <div v-if="!easyCron" class="text-left w-100"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
255 <div class="d-flex flex-row"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
256 <div class="my-auto mr-2">{{ $options.EVERY }}</div> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
257 <select |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
258 :disabled="!scheduled" |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
259 style="width: 130px;" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
260 v-model="cronMode" |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
261 class="form-control form-control-sm" |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
262 @change="clearInputs" |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
263 > |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
264 <option :value="null"></option> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
265 <option |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
266 v-for="(option, key) in $options.CRONMODE" |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
267 :value="key" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
268 :key="key" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
269 >{{ option }}</option |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
270 > |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
271 </select> |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
272 <div v-if="cronMode == 'hour'" class="ml-1 d-flex flex-row"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
273 <div class="mt-auto mb-auto">{{ $options.ON }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
274 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
275 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
276 v-model="minutes" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
277 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
278 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
279 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
280 <div class="mt-auto mb-auto">{{ $options.MINUTESPAST }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
281 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
282 <div v-if="cronMode == 'day'" class="ml-1 d-flex flex-row"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
283 <div class="mt-auto mb-auto">{{ $options.AT }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
284 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
285 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
286 v-model="hour" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
287 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
288 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
289 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
290 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
291 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
292 v-model="minutes" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
293 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
294 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
295 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
296 <div class="mt-auto mb-auto">{{ $options.OCLOCK }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
297 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
298 <div v-if="cronMode == 'week'" class="ml-1 d-flex flex-row"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
299 <div class="ml-1 mr-1 mt-auto mb-auto">{{ $options.ON }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
300 <select |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
301 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
302 v-model="day" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
303 class="form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
304 > |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
305 <option |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
306 v-for="(option, key) in $options.DAYSOFWEEK" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
307 :key="key" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
308 :value="key" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
309 >{{ option }}</option |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
310 > |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
311 </select> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
312 <div class="ml-1 mt-auto mb-auto">{{ $options.AT }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
313 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
314 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
315 v-model="hour" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
316 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
317 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
318 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
319 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
320 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
321 v-model="minutes" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
322 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
323 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
324 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
325 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
326 <div v-if="cronMode == 'month'" class="ml-1 d-flex flex-row"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
327 <div class="ml-1 mt-auto mb-auto">{{ $options.ON }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
328 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
329 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
330 v-model="dayOfMonth" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
331 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
332 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
333 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
334 <div class="mt-auto mb-auto">{{ $options.AT }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
335 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
336 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
337 v-model="hour" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
338 class="cronfield ml-1 mr-2 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
339 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
340 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
341 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
342 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
343 v-model="minutes" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
344 class="cronfield ml-1 mr-2 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
345 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
346 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
347 <div class="mt-auto mb-auto">{{ $options.OCLOCK }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
348 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
349 <div v-if="cronMode == 'year'" class="ml-1 d-flex flex-row"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
350 <div class="ml-1 mt-auto mb-auto">{{ $options.ON }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
351 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
352 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
353 v-model="dayOfMonth" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
354 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
355 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
356 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
357 <div class="mt-auto mb-auto">{{ $options.OF }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
358 <select |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
359 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
360 v-model="month" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
361 class="ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
362 > |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
363 <option |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
364 v-for="(option, key) in $options.MONTHS" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
365 :value="key" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
366 :key="key" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
367 >{{ option }}</option |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
368 > |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
369 </select> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
370 <div class="mt-auto mb-auto">{{ $options.ON }}</div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
371 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
372 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
373 v-model="hour" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
374 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
375 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
376 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
377 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
378 :disabled="!scheduled" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
379 v-model="minutes" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
380 class="cronfield ml-1 mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
381 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
382 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
383 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
384 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
385 <div class="mt-3 w-50 d-flex"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
386 <div class="my-auto mr-2"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
387 <translate>Cronstring</translate> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
388 </div> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
389 <input |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
390 :disabled="!scheduled" |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
391 class="form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
392 v-model="cronString" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
393 type="text" |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
394 /> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
395 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
396 </div> |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
397 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
398 <div class="d-flex flex-column ml-2"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
399 <div class="d-flex flex-row "> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
400 <div class="ml-1 flex-column"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
401 <div class="flex-row text-left"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
402 <small class="text-muted"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
403 <translate>Tries</translate> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
404 </small> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
405 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
406 <div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
407 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
408 :disabled="!retry" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
409 style="width:120px;" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
410 v-model="trys" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
411 class="mr-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
412 v-tooltip.bottom="ttRetries" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
413 type="number" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
414 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
415 </div> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
416 </div> |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
417 <div class="flex-column"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
418 <div class="flex-row text-left"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
419 <small class="text-muted"> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
420 <translate>Wait to retry</translate> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
421 </small> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
422 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
423 <div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
424 <input |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
425 :disabled="!retry" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
426 style="width:120px;" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
427 v-model="waitRetry" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
428 v-tooltip.bottom="ttWaitRetry" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
429 class="ml-1 form-control form-control-sm" |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
430 /> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
431 </div> |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
432 </div> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
433 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
434 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
435 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
436 </template> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
437 <div v-else class="d-flex text-left px-2 pb-3"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
438 <div class="flex-column w-100"> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
439 <div class="custom-file"> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
440 <input |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
441 accept=".xml" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
442 type="file" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
443 @change="fileSelected" |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
444 class="custom-file-input custom-file-input-sm" |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
445 id="uploadFile" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
446 /> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
447 <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
|
448 {{ uploadLabel }} |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
449 </label> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
450 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
451 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
452 </div> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
453 <div class="d-flex justify-content-between p-2 border-top"> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
454 <button :key="1" @click="back()" class="btn btn-sm btn-warning"> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
455 Back |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
456 </button> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
457 <div> |
3697
9ef98342ffe7
client: import configuration: re-enabled 'Trigger import' button
Markus Kottlaender <markus@intevation.de>
parents:
3672
diff
changeset
|
458 <button |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
459 @click="triggerManualImport" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
460 type="button" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
461 class="btn btn-sm btn-outline-info" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
462 :disabled="!triggerActive || !isValid" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
463 > |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
464 <font-awesome-icon fixed-width icon="play" /> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
465 <translate>Trigger import</translate> |
3697
9ef98342ffe7
client: import configuration: re-enabled 'Trigger import' button
Markus Kottlaender <markus@intevation.de>
parents:
3672
diff
changeset
|
466 </button> |
3281
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
467 <button |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
468 v-if="!directImport || !directImportAvailable" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
469 :disabled="!isValid" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
470 type="submit" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
471 class="btn btn-sm btn-info ml-3" |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
472 > |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
473 <translate>Save</translate> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
474 </button> |
439e1865a2d2
client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents:
3001
diff
changeset
|
475 </div> |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
476 </div> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
477 </form> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
478 </template> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
479 |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
480 <script> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
481 /* 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
|
482 * 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
|
483 * |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
484 * 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
|
485 * 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
|
486 * |
5268
1ff56484db4e
Made SortBy parameter in WMS import optional
wilde@azure1.rgb.intevation.de
parents:
4916
diff
changeset
|
487 * Copyright (C) 2018, 2019, 2020 by via donau |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
488 * – Österreichische Wasserstraßen-Gesellschaft mbH |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
489 * Software engineering by Intevation GmbH |
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 * Author(s): |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
492 * Thomas Junk <thomas.junk@intevation.de> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
493 * Tom Gottfried <tom.gottfried@intevation.de> |
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 import { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
496 IMPORTTYPES, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
497 IMPORTTYPEKIND, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
498 initializeCurrentSchedule |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
499 } from "@/store/importschedule"; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
500 import { mapState } from "vuex"; |
2985
1b8bb4f89227
client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents:
2980
diff
changeset
|
501 import { displayInfo, displayError } from "@/lib/errors"; |
1b8bb4f89227
client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents:
2980
diff
changeset
|
502 import app from "@/main"; |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
503 import { HTTP } from "@/lib/http"; |
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 export default { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
506 name: "importscheduledetail", |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
507 components: { |
2993
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
508 Availablefairwaydepth: () => import("./types/Availablefairwaydepth"), |
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
509 Bottleneck: () => import("./types/Bottleneck"), |
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
510 Distancemarksvirtual: () => import("./types/Distancemarksvirtual"), |
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
511 Distancemarksashore: () => import("./types/Distancemarksashore"), |
5396
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
512 DQLReport: () => import("./types/DQLReport"), |
2993
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
513 Faiwaydimensions: () => import("./types/Fairwaydimensions"), |
4870
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
514 Fairwaymarks: () => import("./types/Fairwaymarks"), |
2993
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
515 Gaugemeasurement: () => import("./types/Gaugemeasurement"), |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
516 Statsupdate: () => import("./types/Statsupdate"), |
2993
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
517 Waterwayarea: () => import("./types/Waterwayarea"), |
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
518 Waterwaygauges: () => import("./types/Waterwaygauges"), |
ec3196e2d579
imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents:
2985
diff
changeset
|
519 Waterwayaxis: () => import("./types/Waterwayaxis") |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
520 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
521 data() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
522 return { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
523 directImport: false, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
524 passwordVisible: false, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
525 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
|
526 uploadFile: null, |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
527 retry: false, |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
528 ...initializeCurrentSchedule() |
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 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
531 mounted() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
532 this.initialize(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
533 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
534 watch: { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
535 cronMode() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
536 this.cronString = this.calcCronString(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
537 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
538 minutes() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
539 this.cronString = this.calcCronString(); |
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 hour() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
542 this.cronString = this.calcCronString(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
543 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
544 month() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
545 this.cronString = this.calcCronString(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
546 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
547 day() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
548 this.cronString = this.calcCronString(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
549 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
550 dayOfMonth() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
551 this.cronString = this.calcCronString(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
552 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
553 importScheduleDetailVisible() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
554 this.initialize(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
555 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
556 cronString() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
557 if (this.isWeekly(this.cronString)) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
558 this.simple = "weekly"; |
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 if (this.isMonthly(this.cronString)) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
561 this.simple = "monthly"; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
562 } |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
563 }, |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
564 retry() { |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
565 if (!this.retry) { |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
566 this.trys = 0; |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
567 this.waitRetry = ""; |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
568 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
569 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
570 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
571 computed: { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
572 ...mapState("importschedule", [ |
5396
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
573 "availableReports", |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
574 "importScheduleDetailVisible", |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
575 "currentSchedule" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
576 ]), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
577 import_() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
578 return this.currentSchedule.importType; |
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 directImportAvailable() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
581 switch (this.import_) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
582 case this.$options.IMPORTTYPES.BOTTLENECK: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
583 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
584 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
585 return true; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
586 default: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
587 return false; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
588 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
589 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
590 isCredentialsRequired() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
591 switch (this.import_) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
592 case this.$options.IMPORTTYPES.WATERWAYGAUGES: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
593 case this.$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
594 return true; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
595 default: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
596 return false; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
597 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
598 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
599 isURLRequired() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
600 switch (this.import_) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
601 case this.$options.IMPORTTYPES.BOTTLENECK: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
602 case this.$options.IMPORTTYPES.WATERWAYAXIS: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
603 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
604 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
605 case this.$options.IMPORTTYPES.WATERWAYAREA: |
4870
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
606 case this.$options.IMPORTTYPES.FAIRWAYMARKS: |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
607 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
608 case this.$options.IMPORTTYPES.WATERWAYGAUGES: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
609 case this.$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
610 case this.$options.IMPORTTYPES.DISTANCEMARKSASHORE: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
611 return true; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
612 default: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
613 return false; |
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 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
616 isFeatureTypeRequired() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
617 switch (this.import_) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
618 case this.$options.IMPORTTYPES.WATERWAYAXIS: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
619 case this.$options.IMPORTTYPES.WATERWAYAREA: |
4870
b55120fa8913
add fairway marks import as schedulable import
Thomas Junk <thomas.junk@intevation.de>
parents:
4869
diff
changeset
|
620 case this.$options.IMPORTTYPES.FAIRWAYMARKS: |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
621 case this.$options.IMPORTTYPES.FAIRWAYDIMENSION: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
622 case this.$options.IMPORTTYPES.DISTANCEMARKSASHORE: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
623 return true; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
624 default: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
625 return false; |
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 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
628 isToleranceRequired() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
629 switch (this.import_) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
630 case this.$options.IMPORTTYPES.BOTTLENECK: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
631 return true; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
632 default: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
633 return false; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
634 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
635 }, |
3515
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
636 usernamePasswordFilled() { |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
637 if ( |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
638 this.isCredentialsRequired && |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
639 this.currentSchedule.id && |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
640 this.username |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
641 ) |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
642 return true; |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
643 if ( |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
644 this.isCredentialsRequired && |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
645 !this.currentSchedule.id && |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
646 this.username && |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
647 this.password |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
648 ) |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
649 return true; |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
650 return false; |
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
651 }, |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
652 isValid() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
653 if (!this.import_) return false; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
654 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
|
655 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
|
656 else if (!this.directImport) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
657 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
|
658 if (this.isFeatureTypeRequired && !this.featureType) return false; |
3557
c9c806e35855
client: import configuration: check username/password only if required
Markus Kottlaender <markus@intevation.de>
parents:
3546
diff
changeset
|
659 if (this.isCredentialsRequired && !this.usernamePasswordFilled) |
c9c806e35855
client: import configuration: check username/password only if required
Markus Kottlaender <markus@intevation.de>
parents:
3546
diff
changeset
|
660 return false; |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
661 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
|
662 if ( |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
663 !this.LOS || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
664 !this.minWidth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
665 !this.maxWidth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
666 !this.depth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
667 !this.sourceOrganization |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
668 ) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
669 return false; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
670 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
671 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
672 return true; |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
673 }, |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
674 ttWaitRetry() { |
4231
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
675 return `${this.$gettext( |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
676 "Time between retries. Valid units are 's' , 'm' and 'h' " |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
677 )}<div style="text-align:left;">${this.$gettext( |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
678 "Examples:" |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
679 )}<ul><li>${this.$gettext("60 for 60 Seconds ")} |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
680 </li><li> ${this.$gettext("30m for 30 Minutes")}</li><li> ${this.$gettext( |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
681 "2h45m for for two hours and 45 Minutes" |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
682 )}</li></ul></div>`; |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
683 }, |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
684 ttRetries() { |
4231
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
685 return ` ${this.$gettext("Maximum retry count")}<br> ${this.$gettext( |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
686 "If there is no error during import, there will be no retry" |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
687 )} |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
688 <br><div style="margin-left:45px;text-align:left;"<ul><li> ${this.$gettext( |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
689 "Negative values mean endless retry" |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
690 )} |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
691 </li><li> ${this.$gettext("0 means no retry")}</li><li> ${this.$gettext( |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
692 "Positive values are the upper limit for retries" |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
693 )} |
6f31a99cd92d
clinet: fix translations process and update source strings
Fadi Abbud <fadi.abbud@intevation.de>
parents:
3839
diff
changeset
|
694 </li></ul></div>`; |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
695 }, |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
696 ttRetry() { |
3821
08eed1328ec9
client: Added tooltips for import retry feature in en_GB and de_AT.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3777
diff
changeset
|
697 return this.$gettext("retryDescription"); |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
698 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
699 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
700 methods: { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
701 back() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
702 this.$store.commit("importschedule/setListMode"); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
703 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
704 fileSelected(e) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
705 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
|
706 if (!files) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
707 this.uploadLabel = files[0].name; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
708 this.uploadFile = files[0]; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
709 }, |
5396
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
710 setReportName(value) { |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
711 this.reportName = value; |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
712 }, |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
713 setStatsUpdate(value) { |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
714 this.statsUpdate = value; |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
715 }, |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
716 setUrl(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
717 this.url = value; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
718 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
719 setFeatureType(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
720 this.featureType = value; |
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 setSortBy(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
723 this.sortBy = value; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
724 }, |
4901
1f2d90312ac6
added dropdown to FM import to further specify the kind of fairwaymark to be imported
Thomas Junk <thomas.junk@intevation.de>
parents:
4870
diff
changeset
|
725 setSelectedMark(value) { |
1f2d90312ac6
added dropdown to FM import to further specify the kind of fairwaymark to be imported
Thomas Junk <thomas.junk@intevation.de>
parents:
4870
diff
changeset
|
726 this.selectedMark = value; |
1f2d90312ac6
added dropdown to FM import to further specify the kind of fairwaymark to be imported
Thomas Junk <thomas.junk@intevation.de>
parents:
4870
diff
changeset
|
727 }, |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
728 setTolerance(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
729 this.tolerance = value; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
730 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
731 setUsername(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
732 this.username = value; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
733 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
734 setPassword(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
735 this.password = value; |
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 setLOS(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
738 this.LOS = value; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
739 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
740 setMinWidth(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
741 this.minWidth = value; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
742 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
743 setMaxWidth(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
744 this.maxWidth = value; |
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 setDepth(value) { |
4410
3759b47f20f3
FD_import: change unit of depth to meter for consistency
Thomas Junk <thomas.junk@intevation.de>
parents:
4231
diff
changeset
|
747 this.depth = parseInt(value * 100); |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
748 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
749 setSourceOrganization(value) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
750 this.sourceOrganization = value; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
751 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
752 calcCronString() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
753 let getValue = value => { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
754 return this[value] !== null ? this[value] : "*"; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
755 }; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
756 |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
757 const min = getValue("minutes"); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
758 const h = getValue("hour"); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
759 const dm = getValue("dayOfMonth"); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
760 const m = getValue("month"); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
761 const wd = getValue("day"); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
762 |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
763 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
|
764 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
|
765 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
|
766 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
|
767 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
|
768 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
|
769 return this.cronString; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
770 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
771 validateBottleneckfields() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
772 return !!this.url; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
773 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
774 initialize() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
775 this.id = this.currentSchedule.id; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
776 this.importType = this.currentSchedule.importType; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
777 this.schedule = this.currentSchedule.schedule; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
778 this.scheduled = this.currentSchedule.scheduled; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
779 this.importSource = this.currentSchedule.importSource; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
780 this.eMailNotification = this.currentSchedule.eMailNotification; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
781 this.easyCron = this.currentSchedule.easyCron; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
782 this.cronMode = this.currentSchedule.cronMode; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
783 this.minutes = this.currentSchedule.minutes; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
784 this.month = this.currentSchedule.month; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
785 this.hour = this.currentSchedule.hour; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
786 this.day = this.currentSchedule.day; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
787 this.dayOfMonth = this.currentSchedule.dayOfMonth; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
788 this.simple = this.currentSchedule.simple; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
789 this.url = this.currentSchedule.url; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
790 this.insecure = this.currentSchedule.insecure; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
791 this.cronString = this.currentSchedule.cronString; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
792 this.featureType = this.currentSchedule.featureType; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
793 this.sortBy = this.currentSchedule.sortBy; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
794 this.tolerance = this.currentSchedule.tolerance; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
795 this.username = this.currentSchedule.username; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
796 this.password = this.currentSchedule.password; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
797 this.LOS = this.currentSchedule.LOS; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
798 this.minWidth = this.currentSchedule.minWidth; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
799 this.maxWidth = this.currentSchedule.maxWidth; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
800 this.depth = this.currentSchedule.depth; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
801 this.sourceOrganization = this.currentSchedule.sourceOrganization; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
802 this.directImport = false; |
2998
adc8e9ccf706
imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents:
2994
diff
changeset
|
803 this.trys = this.currentSchedule.trys; |
adc8e9ccf706
imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents:
2994
diff
changeset
|
804 this.waitRetry = this.currentSchedule.waitRetry; |
4901
1f2d90312ac6
added dropdown to FM import to further specify the kind of fairwaymark to be imported
Thomas Junk <thomas.junk@intevation.de>
parents:
4870
diff
changeset
|
805 this.selectedMark = this.currentSchedule.selectedMark; |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
806 this.statsUpdate = this.currentSchedule.statsUpdate; |
5396
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
807 this.reportName = this.currentSchedule.reportName; |
3777
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
808 this.retry = |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
809 this.currentSchedule.trys === null || |
c373758ca2df
client: Improved import retry ui.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
3761
diff
changeset
|
810 this.currentSchedule.trys === undefined || |
3839
03e8e6cc0b79
import_schedule: linting
Thomas Junk <thomas.junk@intevation.de>
parents:
3821
diff
changeset
|
811 this.currentSchedule === 0 |
03e8e6cc0b79
import_schedule: linting
Thomas Junk <thomas.junk@intevation.de>
parents:
3821
diff
changeset
|
812 ? false |
03e8e6cc0b79
import_schedule: linting
Thomas Junk <thomas.junk@intevation.de>
parents:
3821
diff
changeset
|
813 : true; |
2979
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 isWeekly(cron) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
816 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
|
817 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
818 isMonthly(cron) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
819 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
|
820 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
821 clearInputs() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
822 this.minutes = this.currentSchedule.minutes; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
823 this.month = this.currentSchedule.month; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
824 this.hour = this.currentSchedule.hour; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
825 this.day = this.currentSchedule.day; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
826 this.dayOfMonth = this.currentSchedule.dayOfMonth; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
827 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
828 triggerFileUpload() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
829 if (!this.uploadFile) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
830 let formData = new FormData(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
831 let routeParam = ""; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
832 switch (this.import_) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
833 case this.$options.IMPORTTYPES.BOTTLENECK: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
834 formData.append("tolerance", this.tolerance); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
835 routeParam = "ubn"; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
836 break; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
837 case this.$options.IMPORTTYPES.FAIRWAYAVAILABILITY: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
838 routeParam = "ufa"; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
839 break; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
840 case this.$options.IMPORTTYPES.GAUGEMEASUREMENT: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
841 routeParam = "ugm"; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
842 break; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
843 default: |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
844 throw new Error("invalid importroute"); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
845 } |
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 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
|
848 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
|
849 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
|
850 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
851 HTTP.post("/imports/" + routeParam, formData, { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
852 headers: { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
853 "X-Gemma-Auth": localStorage.getItem("token"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
854 "Content-Type": "multipart/form-data" |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
855 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
856 }) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
857 .then(response => { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
858 const { id } = response.data; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
859 displayInfo({ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
860 title: this.$gettext("File Import"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
861 message: this.$gettext("Import import: #") + id |
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 this.closeDetailview(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
864 this.$store.dispatch("importschedule/loadSchedules").catch(error => { |
4869
6b054b91d9b2
backend not reachable as error message etd. Login adjusted
Thomas Junk <thomas.junk@intevation.de>
parents:
4868
diff
changeset
|
865 let message = "Backend not reachable"; |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
866 if (error.response) { |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
867 const { status, data } = error.response; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
868 message = `${status}: ${data.message || data}`; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
869 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
870 displayError({ |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
871 title: this.$gettext("Backend Error"), |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
872 message: message |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
873 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
874 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
875 }) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
876 .catch(error => { |
4869
6b054b91d9b2
backend not reachable as error message etd. Login adjusted
Thomas Junk <thomas.junk@intevation.de>
parents:
4868
diff
changeset
|
877 let message = "Backend not reachable"; |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
878 if (error.response) { |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
879 const { status, data } = error.response; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
880 message = `${status}: ${data.message || data}`; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
881 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
882 displayError({ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
883 title: this.$gettext("Backend Error"), |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
884 message: message |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
885 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
886 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
887 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
888 triggerManualImport() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
889 if (!this.triggerActive) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
890 if (!this.import_) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
891 if (this.directImport) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
892 if (!this.uploadFile) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
893 this.triggerFileUpload(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
894 return; |
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 let data = {}; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
897 if (this.isURLRequired) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
898 if (!this.url) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
899 data["url"] = this.url; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
900 data["insecure"] = this.insecure; |
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 if (this.isFeatureTypeRequired) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
903 if (!this.featureType) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
904 data["feature-type"] = this.featureType; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
905 } |
5278
8d19d4701f0c
Fixed saving and use of SortBy in manually running saved imports.
wilde@azure1.rgb.intevation.de
parents:
5268
diff
changeset
|
906 if (this.sortBy) { |
8d19d4701f0c
Fixed saving and use of SortBy in manually running saved imports.
wilde@azure1.rgb.intevation.de
parents:
5268
diff
changeset
|
907 data["sort-by"] = this.sortBy; |
8d19d4701f0c
Fixed saving and use of SortBy in manually running saved imports.
wilde@azure1.rgb.intevation.de
parents:
5268
diff
changeset
|
908 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
909 if (this.isToleranceRequired) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
910 if (!this.tolerance) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
911 data["tolerance"] = parseFloat(this.tolerance); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
912 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
913 if (this.isCredentialsRequired) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
914 if (!this.username || !this.password) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
915 data["user"] = this.username; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
916 data["password"] = this.password; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
917 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
918 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
|
919 if ( |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
920 !this.LOS || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
921 !this.minWidth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
922 !this.maxWidth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
923 !this.depth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
924 !this.sourceOrganization |
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 return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
927 data["feature-type"] = this.featureType; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
928 data["sort-by"] = this.sortBy; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
929 data["los"] = this.LOS * 1; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
930 data["min-width"] = this.minWidth * 1; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
931 data["max-width"] = this.maxWidth * 1; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
932 data["depth"] = this.depth * 1; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
933 data["source-organization"] = this.sourceOrganization; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
934 } |
3761
f14ff00ad82a
import_configuration: retries and wait parameter added for trigger function
Thomas Junk <thomas.junk@intevation.de>
parents:
3699
diff
changeset
|
935 if (this.waitRetry) data["wait-retry"] = this.waitRetry; |
f14ff00ad82a
import_configuration: retries and wait parameter added for trigger function
Thomas Junk <thomas.junk@intevation.de>
parents:
3699
diff
changeset
|
936 if (this.trys) data["trys"] = Number(this.trys); |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
937 if (this.import_ === this.$options.IMPORTTYPES.STATSUPDATE) { |
5389
661e8a2deed9
add simple validation to statsupdate import
Thomas Junk <thomas.junk@intevation.de>
parents:
5388
diff
changeset
|
938 if (!this.statsUpdate) return; |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
939 data["name"] = this.statsUpdate; |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
940 } |
5396
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
941 if (this.import_ === this.$options.IMPORTTYPES.REPORT) { |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
942 if (!this.reportName) return; |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
943 data["name"] = this.reportName; |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
944 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
945 data["send-email"] = this.eMailNotification; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
946 this.triggerActive = false; |
4910
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
947 const type = |
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
948 this.import_ === "fairwaymarks" |
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
949 ? `fm_${this.selectedMark.toLowerCase()}` |
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
950 : IMPORTTYPEKIND[this.import_]; |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
951 this.$store |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
952 .dispatch("importschedule/triggerImport", { |
4910
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
953 type: type, |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
954 data |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
955 }) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
956 .then(response => { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
957 const { id } = response.data; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
958 displayInfo({ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
959 title: this.$gettext("Import"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
960 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
|
961 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
962 }) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
963 .catch(error => { |
4869
6b054b91d9b2
backend not reachable as error message etd. Login adjusted
Thomas Junk <thomas.junk@intevation.de>
parents:
4868
diff
changeset
|
964 let message = "Backend not reachable"; |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
965 if (error.response) { |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
966 const { status, data } = error.response; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
967 message = `${status}: ${data.message || data}`; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
968 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
969 displayError({ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
970 title: this.$gettext("Backend Error"), |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
971 message: message |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
972 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
973 }) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
974 .finally(() => { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
975 this.triggerActive = true; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
976 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
977 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
978 save() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
979 if (!this.import_) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
980 let cron = this.cronString; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
981 if (this.easyCron) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
982 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
|
983 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
|
984 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
985 let data = {}; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
986 let config = {}; |
4910
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
987 data["kind"] = |
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
988 this.import_ === "fairwaymarks" |
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
989 ? `fm_${this.selectedMark.toLowerCase()}` |
ab184888d58b
wiring of import endpoints for fairwaymarks
Thomas Junk <thomas.junk@intevation.de>
parents:
4901
diff
changeset
|
990 : IMPORTTYPEKIND[this.import_]; |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
991 if (this.isURLRequired) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
992 if (!this.url) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
993 config["url"] = this.url; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
994 config["insecure"] = this.insecure; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
995 } |
5278
8d19d4701f0c
Fixed saving and use of SortBy in manually running saved imports.
wilde@azure1.rgb.intevation.de
parents:
5268
diff
changeset
|
996 if (this.sortBy) { |
8d19d4701f0c
Fixed saving and use of SortBy in manually running saved imports.
wilde@azure1.rgb.intevation.de
parents:
5268
diff
changeset
|
997 config["sort-by"] = this.sortBy; |
8d19d4701f0c
Fixed saving and use of SortBy in manually running saved imports.
wilde@azure1.rgb.intevation.de
parents:
5268
diff
changeset
|
998 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
999 if (this.isFeatureTypeRequired) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1000 if (!this.featureType) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1001 config["feature-type"] = this.featureType; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1002 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1003 if (this.isToleranceRequired) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1004 if (!this.tolerance) return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1005 config["tolerance"] = parseFloat(this.tolerance); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1006 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1007 if (this.isCredentialsRequired) { |
3515
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
1008 if (!this.usernamePasswordFilled) return; |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1009 config = { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1010 ...config, |
3515
c64c47ff2ab1
import: fix for passwordleakage. No passwords are received/sent if configuration is edited.
Thomas Junk <thomas.junk@intevation.de>
parents:
3427
diff
changeset
|
1011 user: this.username |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1012 }; |
3546
7ffc42bb6ec5
sent password when explicitely set
Thomas Junk <thomas.junk@intevation.de>
parents:
3545
diff
changeset
|
1013 if (this.password) { |
3545
8cb5a99784b5
sent password when explicitely set
Thomas Junk <thomas.junk@intevation.de>
parents:
3515
diff
changeset
|
1014 config["password"] = this.password; |
8cb5a99784b5
sent password when explicitely set
Thomas Junk <thomas.junk@intevation.de>
parents:
3515
diff
changeset
|
1015 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1016 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1017 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
|
1018 if ( |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1019 !this.LOS || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1020 !this.minWidth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1021 !this.maxWidth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1022 !this.depth || |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1023 !this.sourceOrganization |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1024 ) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1025 return; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1026 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
|
1027 config["min-width"] = this.minWidth; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1028 config["max-width"] = this.maxWidth; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1029 config["source-organization"] = this.sourceOrganization; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1030 } |
2998
adc8e9ccf706
imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents:
2994
diff
changeset
|
1031 if (this.scheduled) { |
adc8e9ccf706
imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents:
2994
diff
changeset
|
1032 config["cron"] = cron; |
adc8e9ccf706
imports: add tries and wait-retry to client
Thomas Junk <thomas.junk@intevation.de>
parents:
2994
diff
changeset
|
1033 } |
3001
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
1034 if (this.waitRetry) config["wait-retry"] = this.waitRetry; |
23f4fb9a205a
imports: moved email notification
Thomas Junk <thomas.junk@intevation.de>
parents:
2998
diff
changeset
|
1035 if (this.trys) config["trys"] = Number(this.trys); |
5367
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
5278
diff
changeset
|
1036 if (this.import_ === this.$options.IMPORTTYPES.REPORT) { |
5396
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
1037 if (!this.reportName) return; |
064ac1014713
Make DQL-Downloads a bit more dynamic
Thomas Junk <thomas.junk@intevation.de>
parents:
5389
diff
changeset
|
1038 config["name"] = this.reportName; |
5367
1695e17c5a83
Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents:
5278
diff
changeset
|
1039 } |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
1040 if (this.import_ === this.$options.IMPORTTYPES.STATSUPDATE) { |
5389
661e8a2deed9
add simple validation to statsupdate import
Thomas Junk <thomas.junk@intevation.de>
parents:
5388
diff
changeset
|
1041 if (!this.statsUpdate) return; |
5388
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
1042 config["name"] = this.statsUpdate; |
60bba8e6322b
Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents:
5381
diff
changeset
|
1043 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1044 config["send-email"] = this.eMailNotification; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1045 if (!this.id) { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1046 data["config"] = config; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1047 this.$store |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1048 .dispatch("importschedule/saveCurrentSchedule", data) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1049 .then(response => { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1050 const { id } = response.data; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1051 displayInfo({ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1052 title: this.$gettext("Import"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1053 message: this.$gettext("Saved import: #") + id |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1054 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1055 this.closeDetailview(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1056 this.$store |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1057 .dispatch("importschedule/loadSchedules") |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1058 .catch(error => { |
4869
6b054b91d9b2
backend not reachable as error message etd. Login adjusted
Thomas Junk <thomas.junk@intevation.de>
parents:
4868
diff
changeset
|
1059 let message = "Backend not reachable"; |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1060 if (error.response) { |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1061 const { status, data } = error.response; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1062 message = `${status}: ${data.message || data}`; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1063 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1064 displayError({ |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1065 title: this.$gettext("Backend Error"), |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1066 message: message |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1067 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1068 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1069 }) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1070 .catch(error => { |
4869
6b054b91d9b2
backend not reachable as error message etd. Login adjusted
Thomas Junk <thomas.junk@intevation.de>
parents:
4868
diff
changeset
|
1071 let message = "Backend not reachable"; |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1072 if (error.response) { |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1073 const { status, data } = error.response; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1074 message = `${status}: ${data.message || data}`; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1075 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1076 displayError({ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1077 title: this.$gettext("Backend Error"), |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1078 message: message |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1079 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1080 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1081 } else { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1082 this.$store |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1083 .dispatch("importschedule/updateCurrentSchedule", { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1084 data: config, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1085 id: this.id |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1086 }) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1087 .then(response => { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1088 const { id } = response.data; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1089 displayInfo({ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1090 title: this.$gettext("Import"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1091 message: this.$gettext("update import: #") + id |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1092 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1093 this.closeDetailview(); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1094 this.$store |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1095 .dispatch("importschedule/loadSchedules") |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1096 .catch(error => { |
4869
6b054b91d9b2
backend not reachable as error message etd. Login adjusted
Thomas Junk <thomas.junk@intevation.de>
parents:
4868
diff
changeset
|
1097 let message = "Backend not reachable"; |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1098 if (error.response) { |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1099 const { status, data } = error.response; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1100 message = `${status}: ${data.message || data}`; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1101 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1102 displayError({ |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1103 title: this.$gettext("Backend Error"), |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1104 message: message |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1105 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1106 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1107 }) |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1108 .catch(error => { |
4869
6b054b91d9b2
backend not reachable as error message etd. Login adjusted
Thomas Junk <thomas.junk@intevation.de>
parents:
4868
diff
changeset
|
1109 let message = "Backend not reachable"; |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1110 if (error.response) { |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1111 const { status, data } = error.response; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1112 message = `${status}: ${data.message || data}`; |
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1113 } |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1114 displayError({ |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1115 title: this.$gettext("Backend Error"), |
4868
008bc1ae8897
exception handling
Thomas Junk <thomas.junk@intevation.de>
parents:
4410
diff
changeset
|
1116 message: message |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1117 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1118 }); |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1119 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1120 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1121 closeDetailview() { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1122 this.$store.commit("importschedule/clearCurrentSchedule"); |
2980
a9b61290fcc2
unified_imports: edit capabilities added
Thomas Junk <thomas.junk@intevation.de>
parents:
2979
diff
changeset
|
1123 this.$store.commit("importschedule/setListMode"); |
2979
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1124 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1125 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1126 IMPORTTYPES: IMPORTTYPES, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1127 on: "on", |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1128 off: "off", |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1129 FILE: app.$gettext("File"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1130 URL: app.$gettext("URL"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1131 EVERY: app.$gettext("Every"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1132 MINUTESPAST: app.$gettext("minutes past"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1133 ON: app.$gettext("on"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1134 OF: app.$gettext("of"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1135 AT: app.$gettext("at"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1136 OCLOCK: app.$gettext("o' clock"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1137 CRONMODE: { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1138 "15minutes": app.$gettext("15 minutes"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1139 hour: app.$gettext("hour"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1140 day: app.$gettext("day"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1141 week: app.$gettext("week"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1142 month: app.$gettext("month"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1143 year: app.$gettext("year") |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1144 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1145 DAYSOFWEEK: { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1146 1: app.$gettext("Monday"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1147 2: app.$gettext("Tuesday"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1148 3: app.$gettext("Wednesday"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1149 4: app.$gettext("Thursday"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1150 5: app.$gettext("Friday"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1151 6: app.$gettext("Saturday"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1152 0: app.$gettext("Sunday") |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1153 }, |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1154 MONTHS: { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1155 1: app.$gettext("January"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1156 2: app.$gettext("February"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1157 3: app.$gettext("March"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1158 4: app.$gettext("April"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1159 5: app.$gettext("May"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1160 6: app.$gettext("June"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1161 7: app.$gettext("July"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1162 8: app.$gettext("August"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1163 9: app.$gettext("September"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1164 10: app.$gettext("October"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1165 11: app.$gettext("November"), |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1166 12: app.$gettext("December") |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1167 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1168 }; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1169 </script> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1170 |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1171 <style lang="scss" scoped> |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1172 .cronfield { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1173 width: 55px; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1174 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1175 |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1176 .importscheduledetailscard { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1177 min-height: 550px; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1178 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1179 |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1180 .importscheduledetails { |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1181 width: 100%; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1182 margin-top: $offset; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1183 margin-right: $offset; |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1184 } |
8f266dc8b4e3
unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents:
diff
changeset
|
1185 </style> |