annotate client/src/components/importconfiguration/ImportDetails.vue @ 5367:1695e17c5a83 extented-report

Adds schedualbility for reports as an import. In order to enable the sysadmin to schedule the automatic reports on dataquality there is now a new import type established. This import allows to edit the schedule for issuing the report. Besides: The layout for the usermanagement is now x-scrollable when overflown.
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 23 Jun 2021 14:46:14 +0200
parents 69cc3d3047ab
children 60bba8e6322b
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"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
12 >
4903
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
13 <optgroup :label="onetimeLabel">
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
14 <option :value="$options.IMPORTTYPES.SOUNDINGRESULTS">
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
15 <translate>Soundingresults</translate>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
16 </option>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
17 <option :value="$options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS">
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
18 <translate>Approved Gaugemeasurements</translate>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
19 </option>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
20 <option :value="$options.IMPORTTYPES.WATERWAYPROFILES">
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
21 <translate>Waterway Profiles</translate>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
22 </option>
69cc3d3047ab moved onetime imports to top in import selection
Thomas Junk <thomas.junk@intevation.de>
parents: 4900
diff changeset
23 </optgroup>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
24 <optgroup :label="regularLabel">
3417
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
25 <option :value="$options.IMPORTTYPES.WATERWAYAREA">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
26 <translate>Waterway area</translate>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
27 </option>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
28 <option :value="$options.IMPORTTYPES.WATERWAYAXIS">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
29 <translate>Waterway axis</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
30 </option>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
31 <option :value="$options.IMPORTTYPES.FAIRWAYDIMENSION">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
32 <translate>Fairway dimension</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
33 </option>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
34 <option :value="$options.IMPORTTYPES.DISTANCEMARKSVIRTUAL">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
35 <translate>Distance marks virtual</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
36 </option>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
37 <option :value="$options.IMPORTTYPES.DISTANCEMARKSASHORE">
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
38 <translate>Distance marks ashore</translate>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
39 </option>
3417
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
40 <option :value="$options.IMPORTTYPES.WATERWAYGAUGES">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
41 <translate>Waterway gauges</translate>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
42 </option>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
43 <option :value="$options.IMPORTTYPES.BOTTLENECK">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
44 <translate>Bottlenecks</translate>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
45 </option>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
46 <option :value="$options.IMPORTTYPES.FAIRWAYAVAILABILITY">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
47 <translate>Available fairway depths</translate>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
48 </option>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
49 <option :value="$options.IMPORTTYPES.GAUGEMEASUREMENT">
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
50 <translate>Gauge measurement</translate>
604ce439e1fd Reordered import types in "new import" menu.
Sascha Wilde <wilde@intevation.de>
parents: 3281
diff changeset
51 </option>
4900
bbcea42bba87 Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents: 4887
diff changeset
52 <option :value="$options.IMPORTTYPES.FAIRWAYMARKS">
bbcea42bba87 Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents: 4887
diff changeset
53 <translate>Fairwaymarks</translate>
bbcea42bba87 Backed out changeset d5790fcb8df6
Thomas Junk <thomas.junk@intevation.de>
parents: 4887
diff changeset
54 </option>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
55 </optgroup>
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
56 <optgroup :label="reportslabel" v-if="isSysAdmin">
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
57 <option :value="$options.IMPORTTYPES.REPORT">
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
58 <translate>Data Quality Report</translate>
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
59 </option>
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
60 </optgroup>
3281
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
61 </select>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
62 </div>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
63 <ApprovedGaugeMeasurement
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
64 v-if="Import === $options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
65 class="mt-1"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
66 />
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
67 <WaterwayProfiles
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
68 class="mt-1"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
69 v-if="Import === $options.IMPORTTYPES.WATERWAYPROFILES"
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 <SoundingResults
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.SOUNDINGRESULTS"
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 <ScheduledImports
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 && !isOnetime"
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
78 ></ScheduledImports>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
79 </div>
439e1865a2d2 client: define stretches/imports: code cleanup / style improvements
Markus Kottlaender <markus@intevation.de>
parents: 2998
diff changeset
80 <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
81 <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
82 Back
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
83 </button>
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
84 </div>
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
85 </div>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
86 </template>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
87
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
88 <style lang="scss" scoped></style>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
89
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
90 <script>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
91 /* 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
92 * without warranty, see README.md and license for details.
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 * SPDX-License-Identifier: AGPL-3.0-or-later
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
95 * License-Filename: LICENSES/AGPL-3.0.txt
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
96 *
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
97 * Copyright (C) 2018, 2019 by via donau
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
98 * – Österreichische Wasserstraßen-Gesellschaft mbH
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
99 * Software engineering by Intevation GmbH
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 * Author(s):
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
102 * Thomas Junk <thomas.junk@intevation.de>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
103 * Tom Gottfried <tom.gottfried@intevation.de>
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
104 */
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
105 import { IMPORTTYPES } from "@/store/importschedule";
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
106 import { mapState, mapGetters } from "vuex";
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
107 export default {
2974
e161e1ffb6b5 unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents: 2972
diff changeset
108 components: {
2985
1b8bb4f89227 client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
109 ApprovedGaugeMeasurement: () => import("./types/ApprovedGaugeMeasurement"),
2978
d6dd158b8071 unified_import: reorganizing files
Thomas Junk <thomas.junk@intevation.de>
parents: 2977
diff changeset
110 WaterwayProfiles: () => import("./types/WaterwayProfiles"),
2985
1b8bb4f89227 client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents: 2979
diff changeset
111 SoundingResults: () => import("./types/Soundingresults"),
2993
ec3196e2d579 imports: moved scheduled imports component in filesystem
Thomas Junk <thomas.junk@intevation.de>
parents: 2985
diff changeset
112 ScheduledImports: () => import("./ScheduledImports")
2974
e161e1ffb6b5 unified_imports: AGM moved to new interface
Thomas Junk <thomas.junk@intevation.de>
parents: 2972
diff changeset
113 },
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
114 data() {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
115 return {};
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
116 },
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
117 computed: {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
118 ...mapState("importschedule", ["currentSchedule"]),
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
119 ...mapGetters("user", ["isSysAdmin"]),
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
120 isOnetime() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
121 for (let kind of [
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
122 this.$options.IMPORTTYPES.SOUNDINGRESULTS,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
123 this.$options.IMPORTTYPES.APPROVEDGAUGEMEASUREMENTS,
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
124 this.$options.IMPORTTYPES.WATERWAYPROFILES
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
125 ]) {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
126 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
127 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
128 return false;
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
129 },
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
130 Import: {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
131 get() {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
132 return this.currentSchedule.importType;
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
133 },
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
134 set(value) {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
135 this.$store.commit("importschedule/setImportType", value);
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
136 }
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
137 },
5367
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
138 reportslabel() {
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
139 return this.$gettext("Reports");
1695e17c5a83 Adds schedualbility for reports as an import.
Thomas Junk <thomas.junk@intevation.de>
parents: 4903
diff changeset
140 },
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
141 onetimeLabel() {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
142 return this.$gettext("Onetime Imports");
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
143 },
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
144 regularLabel() {
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
145 return this.$gettext("Regular Imports");
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
146 }
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
147 },
2979
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
148 methods: {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
149 back() {
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
150 this.$store.commit("importschedule/setListMode");
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
151 }
8f266dc8b4e3 unified_imports: moved imports partially to new UI
Thomas Junk <thomas.junk@intevation.de>
parents: 2978
diff changeset
152 },
2972
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
153 IMPORTTYPES: IMPORTTYPES
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
154 };
6f351e00e579 unified_imports: initial layout etd
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
155 </script>