annotate client/src/components/importconfiguration/ImportDetails.vue @ 5679:03dfbe675842 sr-v2

Simplified version handling.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 11 Feb 2024 12:37:09 +0100
parents 8fc26cc61ba8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
2 <div class="text-left">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
3 <div>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
4 <div class="p-2 pb-3 border-bottom">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
5 <small class="text-muted">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
6 <translate>Import type</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
7 </small>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
8 <select
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
9 v-model="Import"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
10 class="custom-select custom-select-sm"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
11 id="importtype"
5664
daa39433bef1 Fixed UI for import configuration: kind can not be changed on update
Sascha Wilde <wilde@sha-bang.de>
parents: 5629
diff changeset
12 :disabled="updateImport"
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
13 >
4903
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
14 <optgroup :label="onetimeLabel">
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
15 <option :value="$options.IMPORTTYPES.SOUNDINGRESULTS">
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
16 <translate>Soundingresults</translate>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
17 </option>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
18 <option :value="$options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS">
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
19 <translate>Approved Gaugemeasurements</translate>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
20 </option>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
21 <option :value="$options.IMPORTTYPES.WATERWAYPROFILES">
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
22 <translate>Waterway Profiles</translate>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
23 </option>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
24 </optgroup>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
25 <optgroup :label="regularLabel">
3417
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
26 <option :value="$options.IMPORTTYPES.WATERWAYAREA">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
27 <translate>Waterway area</translate>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
28 </option>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
29 <option :value="$options.IMPORTTYPES.WATERWAYAXIS">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
30 <translate>Waterway axis</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
31 </option>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
32 <option :value="$options.IMPORTTYPES.FAIRWAYDIMENSION">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
33 <translate>Fairway dimension</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
34 </option>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
35 <option :value="$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
36 <translate>Distance marks virtual</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
37 </option>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
38 <option :value="$options.IMPORTTYPES.DISTANCEMARKSASHORE">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
39 <translate>Distance marks ashore</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
40 </option>
3417
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
41 <option :value="$options.IMPORTTYPES.WATERWAYGAUGES">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
42 <translate>Waterway gauges</translate>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
43 </option>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
44 <option :value="$options.IMPORTTYPES.BOTTLENECK">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
45 <translate>Bottlenecks</translate>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
46 </option>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
47 <option :value="$options.IMPORTTYPES.FAIRWAYAVAILABILITY">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
48 <translate>Available fairway depths</translate>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
49 </option>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
50 <option :value="$options.IMPORTTYPES.GAUGEMEASUREMENT">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
51 <translate>Gauge measurement</translate>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
52 </option>
4900
bbcea42bba87 Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents: 4887
diff changeset
53 <option :value="$options.IMPORTTYPES.FAIRWAYMARKS">
bbcea42bba87 Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents: 4887
diff changeset
54 <translate>Fairwaymarks</translate>
bbcea42bba87 Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents: 4887
diff changeset
55 </option>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
56 </optgroup>
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
57 <optgroup :label="reportslabel" v-if="isSysAdmin">
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
58 <option :value="$options.IMPORTTYPES.REPORT">
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
59 <translate>Data Quality Report</translate>
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
60 </option>
5388
60bba8e6322b Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents: 5367
diff changeset
61 <option :value="$options.IMPORTTYPES.STATSUPDATE">
60bba8e6322b Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents: 5367
diff changeset
62 <translate>Update Stats</translate>
60bba8e6322b Add import for updating stats.
Thomas Junk <thomas.junk@intevation.de>
parents: 5367
diff changeset
63 </option>
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
64 </optgroup>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
65 </select>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
66 </div>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
67 <ApprovedGaugeMeasurement
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
68 v-if="Import === $options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
69 class="mt-1"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
70 />
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
71 <WaterwayProfiles
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
72 class="mt-1"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
73 v-if="Import === $options.IMPORTTYPES.WATERWAYPROFILES"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
74 />
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
75 <SoundingResults
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
76 class="mt-1"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
77 v-if="Import === $options.IMPORTTYPES.SOUNDINGRESULTS"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
78 />
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
79 <ScheduledImports
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
80 class="mt-1"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
81 v-if="Import && !isOnetime"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
82 ></ScheduledImports>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
83 </div>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
84 <div v-if="!Import" class="p-2">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
85 <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: 2978
diff changeset
86 Back
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
87 </button>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
88 </div>
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
89 </div>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
90 </template>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
91
5629
84d01a536bec Transformed scss and sass styles into css
Luisa Beerboom <lbeerboom@intevation.de>
parents: 5388
diff changeset
92 <style scoped></style>
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
93
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
94 <script>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
95 /* This is Free Software under GNU Affero General Public License v >= 3.0
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
96 * without warranty, see README.md and license for details.
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
97 *
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
98 * SPDX-License-Identifier: AGPL-3.0-or-later
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
99 * License-Filename: LICENSES/AGPL-3.0.txt
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
100 *
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
101 * Copyright (C) 2018, 2019 by via donau
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
102 * – Österreichische Wasserstraßen-Gesellschaft mbH
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
103 * Software engineering by Intevation GmbH
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
104 *
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
105 * Author(s):
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
106 * Thomas Junk <thomas.junk@intevation.de>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
107 * Tom Gottfried <tom.gottfried@intevation.de>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
108 */
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
109 import { IMPORTTYPES } from "@/store/importschedule";
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
110 import { mapState, mapGetters } from "vuex";
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
111 export default {
2974
e161e1ffb6b5 unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents: 2972
diff changeset
112 components: {
2985
1b8bb4f89227 client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
113 ApprovedGaugeMeasurement: () => import("./types/ApprovedGaugeMeasurement"),
2978
d6dd158b8071 unified_import: reorganizing files
Thomas Junk <thomas.junk@intevation.de>
parents: 2977
diff changeset
114 WaterwayProfiles: () => import("./types/WaterwayProfiles"),
2985
1b8bb4f89227 client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
115 SoundingResults: () => import("./types/Soundingresults"),
2993
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
116 ScheduledImports: () => import("./ScheduledImports")
2974
e161e1ffb6b5 unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents: 2972
diff changeset
117 },
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
118 data() {
5664
daa39433bef1 Fixed UI for import configuration: kind can not be changed on update
Sascha Wilde <wilde@sha-bang.de>
parents: 5629
diff changeset
119 return {
daa39433bef1 Fixed UI for import configuration: kind can not be changed on update
Sascha Wilde <wilde@sha-bang.de>
parents: 5629
diff changeset
120 updateImport: false
daa39433bef1 Fixed UI for import configuration: kind can not be changed on update
Sascha Wilde <wilde@sha-bang.de>
parents: 5629
diff changeset
121 };
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
122 },
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
123 computed: {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
124 ...mapState("importschedule", ["currentSchedule"]),
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
125 ...mapGetters("user", ["isSysAdmin"]),
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
126 isOnetime() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
127 for (let kind of [
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
128 this.$options.IMPORTTYPES.SOUNDINGRESULTS,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
129 this.$options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
130 this.$options.IMPORTTYPES.WATERWAYPROFILES
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
131 ]) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
132 if (kind === this.currentSchedule.importType) return true;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
133 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
134 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
135 },
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
136 Import: {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
137 get() {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
138 return this.currentSchedule.importType;
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
139 },
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
140 set(value) {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
141 this.$store.commit("importschedule/setImportType", value);
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
142 }
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
143 },
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
144 reportslabel() {
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
145 return this.$gettext("Reports");
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
146 },
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
147 onetimeLabel() {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
148 return this.$gettext("Onetime Imports");
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
149 },
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
150 regularLabel() {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
151 return this.$gettext("Regular Imports");
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
152 }
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
153 },
5664
daa39433bef1 Fixed UI for import configuration: kind can not be changed on update
Sascha Wilde <wilde@sha-bang.de>
parents: 5629
diff changeset
154 mounted() {
5665
8fc26cc61ba8 Make BNs in log messages linkable
Thomas Junk <thomas.junk@intevation.de>
parents: 5664
diff changeset
155 this.updateImport = !!this.Import;
5664
daa39433bef1 Fixed UI for import configuration: kind can not be changed on update
Sascha Wilde <wilde@sha-bang.de>
parents: 5629
diff changeset
156 },
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
157 methods: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
158 back() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
159 this.$store.commit("importschedule/setListMode");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
160 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
161 },
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
162 IMPORTTYPES: IMPORTTYPES
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
163 };
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
164 </script>