annotate client/src/components/importqueue/Importqueue.vue @ 1567:ed67857a2079

layout
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 12 Dec 2018 13:01:52 +0100
parents 20815bf5862f
children b88cc5aadcc1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
1 <template>
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
2 <div class="d-flex flex-row">
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
3 <div :class="spacerStyle"></div>
1530
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
4 <div class="mt-3 importqueuecard flex-grow-1">
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
5 <div class="card shadow-xs">
1480
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1460
diff changeset
6 <h6
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1460
diff changeset
7 class="mb-0 py-2 px-3 border-bottom d-flex text-info align-items-center"
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1460
diff changeset
8 >
1455
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1449
diff changeset
9 <font-awesome-icon icon="tasks" class="mr-2"></font-awesome-icon>
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1449
diff changeset
10 <translate class="headline">Importqueue</translate>
33dda08d67be unified layout for adminsection
Thomas Junk <thomas.junk@intevation.de>
parents: 1449
diff changeset
11 </h6>
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
12 <div class="card-body importcardbody">
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
13 <div class="card-body importcardbody">
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
14 <div class="searchandfilter d-flex flex-row">
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
15 <div class="searchgroup input-group">
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
16 <div class="input-group-prepend">
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
17 <span class="input-group-text" id="search">
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
18 <font-awesome-icon icon="search"></font-awesome-icon>
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
19 </span>
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
20 </div>
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
21 <input
1383
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
22 v-model="searchQuery"
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
23 type="text"
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
24 class="form-control"
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
25 placeholder
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
26 aria-label="Search"
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
27 aria-describedby="search"
1480
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1460
diff changeset
28 />
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
29 </div>
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
30 <div class="filters">
1480
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1460
diff changeset
31 <button
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1460
diff changeset
32 @click="setFilter('successful')"
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1460
diff changeset
33 :class="successfulStyle"
9b81ac91a43e fix: linting
Thomas Junk <thomas.junk@intevation.de>
parents: 1460
diff changeset
34 >
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
35 <translate>Successful</translate>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
36 </button>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
37 <button @click="setFilter('failed')" :class="failedStyle">
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
38 <translate>Failed</translate>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
39 </button>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
40 <button @click="setFilter('pending')" :class="pendingStyle">
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
41 <translate>Pending</translate>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
42 </button>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
43 <button @click="setFilter('rejected')" :class="rejectedStyle">
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
44 <translate>Rejected</translate>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
45 </button>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
46 <button @click="setFilter('accepted')" :class="acceptedStyle">
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
47 <translate>Accepted</translate>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
48 </button>
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
49 </div>
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
50 </div>
1566
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
51 <div class="text-left d-flex flex-row border-bottom entries">
1554
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
52 <div class="header py-1 jobid mr-2">
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
53 <translate>Id</translate>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
54 </div>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
55 <div class="header py-1 enqueued mr-2">
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
56 <translate>Enqueued</translate>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
57 </div>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
58 <div class="header py-1 kind mr-2">
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
59 <translate>Kind</translate>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
60 </div>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
61 <div class="header py-1 user mr-2">
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
62 <translate>User</translate>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
63 </div>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
64 <div class="header py-1 signer mr-2">
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
65 <translate>Signer</translate>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
66 </div>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
67 <div class="header py-1 state mr-2">
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
68 <translate>State</translate>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
69 </div>
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
70 </div>
1566
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
71 <div class="mb-4">
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
72 <div
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
73 class="text-left"
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
74 v-for="job in filteredImports"
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
75 :key="job.id"
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
76 >
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
77 <Importqueuedetail
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
78 :reload="reload"
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
79 :job="job"
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
80 ></Importqueuedetail>
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
81 </div>
1554
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
82 </div>
1388
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
83 <div>
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
84 <button @click="refresh" class="btn btn-info refresh">
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
85 <translate>Refresh</translate>
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
86 </button>
1388
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
87 </div>
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
88 </div>
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
89 </div>
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
90 </div>
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
91 </div>
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
92 </div>
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
93 </template>
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
94
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
95 <script>
1362
ca33ad696594 remove the first empyty lines
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1360
diff changeset
96 /* This is Free Software under GNU Affero General Public License v >= 3.0
1360
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
97 * without warranty, see README.md and license for details.
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
98 *
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
99 * SPDX-License-Identifier: AGPL-3.0-or-later
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
100 * License-Filename: LICENSES/AGPL-3.0.txt
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
101 *
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
102 * Copyright (C) 2018 by via donau
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
103 * – Österreichische Wasserstraßen-Gesellschaft mbH
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
104 * Software engineering by Intevation GmbH
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
105 *
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
106 * Author(s):
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
107 * Markus Kottländer <markus@intevation.de>
3fee649d3d5d add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents: 1299
diff changeset
108 */
1559
5d84dcb79a54 layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
109 import { displayError } from "../../lib/errors.js";
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
110 import { mapState } from "vuex";
1559
5d84dcb79a54 layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents: 1558
diff changeset
111 import { HTTP } from "../../lib/http.js";
1554
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
112 import Importqueuedetail from "./Importqueuedetail";
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
113
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
114 export default {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
115 name: "importqueue",
1554
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
116 components: {
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
117 Importqueuedetail
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
118 },
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
119 data() {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
120 return {
1562
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
121 reload: false,
1383
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
122 searchQuery: "",
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
123 successful: false,
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
124 failed: false,
1383
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
125 pending: false,
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
126 rejected: false,
1554
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
127 accepted: false
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
128 };
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
129 },
1405
522488564de0 import soundingresults: layout adjusted and epsg selection added
Thomas Junk <thomas.junk@intevation.de>
parents: 1402
diff changeset
130 mounted() {
522488564de0 import soundingresults: layout adjusted and epsg selection added
Thomas Junk <thomas.junk@intevation.de>
parents: 1402
diff changeset
131 this.loadQueue();
522488564de0 import soundingresults: layout adjusted and epsg selection added
Thomas Junk <thomas.junk@intevation.de>
parents: 1402
diff changeset
132 },
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
133 methods: {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
134 setFilter(name) {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
135 this[name] = !this[name];
1383
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
136 const allSet =
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
137 this.successful &&
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
138 this.failed &&
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
139 this.pending &&
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
140 this.accepted &&
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
141 this.rejected;
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
142 if (allSet) {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
143 this.successful = false;
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
144 this.failed = false;
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
145 this.pending = false;
1383
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
146 this.accepted = false;
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
147 this.rejected = false;
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
148 }
1388
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
149 },
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
150 loadQueue() {
1562
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
151 this.reload = true;
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
152 this.$store
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
153 .dispatch("imports/getImports")
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
154 .then(() => {
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
155 this.reload = false;
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
156 })
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
157 .catch(error => {
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
158 const { status, data } = error.response;
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
159 displayError({
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
160 title: this.$gettext("Backend Error"),
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
161 message: `${status}: ${data.message || data}`
7ac802add1b9 reload strategy for details on refreshing
Thomas Junk <thomas.junk@intevation.de>
parents: 1559
diff changeset
162 });
1388
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
163 });
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
164 },
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
165 refresh() {
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
166 this.loadQueue();
1549
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
167 },
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
168 showDetails(id) {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
169 HTTP.get("/imports/" + id, {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
170 headers: { "X-Gemma-Auth": localStorage.getItem("token") }
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
171 })
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
172 .then(response => {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
173 const { entries } = response.data;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
174 this.entries = entries;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
175 this.$modal.show("details");
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
176 })
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
177 .catch(error => {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
178 const { status, data } = error.response;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
179 displayError({
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
180 title: this.$gettext("Backend Error"),
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
181 message: `${status}: ${data.message || data}`
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
182 });
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
183 });
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
184 },
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
185 close() {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
186 this.$modal.hide("details");
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
187 }
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
188 },
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
189 computed: {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
190 ...mapState("imports", ["imports"]),
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
191 ...mapState("application", ["showSidebar"]),
1549
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
192 sortIcon() {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
193 return this.sortAsc ? "sort-amount-down" : "sort-amount-up";
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
194 },
1383
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
195 filteredImports() {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
196 const filtered = this.imports
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
197 .filter(element => {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
198 if (!this.searchQuery) return true;
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
199 return [(element.kind, element.user, element.enqueued)].some(x => {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
200 return x.toLowerCase().includes(this.searchQuery.toLowerCase());
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
201 });
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
202 })
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
203 .filter(y => {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
204 if (
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
205 !this.successful &&
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
206 !this.failed &&
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
207 !this.pending &&
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
208 !this.accepted &&
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
209 !this.rejected
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
210 )
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
211 return true;
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
212 let filterCriteria = [];
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
213 if (this.successful) filterCriteria.push("successful");
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
214 if (this.failed) filterCriteria.push("failed");
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
215 if (this.pending) filterCriteria.push("pending");
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
216 if (this.accepted) filterCriteria.push("accepted");
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
217 if (this.rejected) filterCriteria.push("rejected");
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
218 const result = filterCriteria.map(selectedState => {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
219 return y.state === selectedState;
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
220 });
1405
522488564de0 import soundingresults: layout adjusted and epsg selection added
Thomas Junk <thomas.junk@intevation.de>
parents: 1402
diff changeset
221 return result.some(x => x);
1383
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
222 });
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
223 return filtered;
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
224 },
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
225 spacerStyle() {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
226 return [
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
227 "spacer ml-3",
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
228 {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
229 "spacer-expanded": this.showSidebar,
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
230 "spacer-collapsed": !this.showSidebar
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
231 }
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
232 ];
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
233 },
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
234 successfulStyle() {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
235 return {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
236 btn: true,
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
237 "btn-light": !this.successful,
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
238 "btn-dark": this.successful
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
239 };
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
240 },
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
241 pendingStyle() {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
242 return {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
243 btn: true,
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
244 "btn-light": !this.pending,
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
245 "btn-dark": this.pending
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
246 };
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
247 },
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
248 failedStyle() {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
249 return {
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
250 btn: true,
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
251 "btn-light": !this.failed,
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
252 "btn-dark": this.failed
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
253 };
1383
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
254 },
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
255 rejectedStyle() {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
256 return {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
257 btn: true,
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
258 "btn-light": !this.rejected,
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
259 "btn-dark": this.rejected
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
260 };
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
261 },
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
262 acceptedStyle() {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
263 return {
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
264 btn: true,
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
265 "btn-light": !this.accepted,
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
266 "btn-dark": this.accepted
cbd04809ee50 importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents: 1362
diff changeset
267 };
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
268 }
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
269 }
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
270 };
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
271 </script>
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
272
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
273 <style lang="scss" scoped>
1566
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
274 .entries {
1567
Thomas Junk <thomas.junk@intevation.de>
parents: 1566
diff changeset
275 width: 750px;
1566
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
276 }
Thomas Junk <thomas.junk@intevation.de>
parents: 1562
diff changeset
277
1554
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
278 .jobid {
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
279 width: 80px;
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
280 }
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
281
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
282 .enqueued {
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
283 width: 120px;
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
284 }
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
285
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
286 .user {
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
287 width: 80px;
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
288 }
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
289
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
290 .signer {
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
291 width: 80px;
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
292 }
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
293
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
294 .kind {
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
295 width: 80px;
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
296 }
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
297
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
298 .state {
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
299 width: 80px;
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
300 }
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
301
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
302 .header {
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
303 font-weight: bold;
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
304 font-size: 0.9em;
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
305 }
15d736a402c9 importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents: 1549
diff changeset
306
1549
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
307 .details thead {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
308 display: block;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
309 }
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
310 .details tbody {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
311 display: block;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
312 }
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
313
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
314 .details tbody {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
315 height: 260px;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
316 overflow-y: auto;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
317 overflow-x: hidden;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
318 }
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
319
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
320 .closebutton {
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
321 top: $small-offset;
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
322 }
b03db5726ca5 importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents: 1530
diff changeset
323
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
324 .refresh {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
325 position: absolute;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
326 right: $offset;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
327 bottom: $offset;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
328 }
1388
df30521b2c0b importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents: 1383
diff changeset
329
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
330 .spacer {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
331 height: 100vh;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
332 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
333
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
334 .spacer-collapsed {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
335 min-width: $icon-width + $offset;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
336 transition: $transition-fast;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
337 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
338
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
339 .spacer-expanded {
1530
Thomas Junk <thomas.junk@intevation.de>
parents: 1529
diff changeset
340 min-width: $sidebar-width;
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
341 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
342
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
343 .importqueuecard {
1529
Thomas Junk <thomas.junk@intevation.de>
parents: 1508
diff changeset
344 width: 97%;
Thomas Junk <thomas.junk@intevation.de>
parents: 1508
diff changeset
345 margin-left: $offset;
Thomas Junk <thomas.junk@intevation.de>
parents: 1508
diff changeset
346 margin-right: $offset;
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
347 min-height: 20rem;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
348 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
349
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
350 .card-body {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
351 width: 100%;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
352 margin-left: auto;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
353 margin-right: auto;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
354 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
355
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
356 .searchandfilter {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
357 position: relative;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
358 margin-bottom: $xx-large-offset;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
359 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
360
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
361 .filters {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
362 position: absolute;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
363 right: 0;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
364 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
365
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
366 .filters button {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
367 margin-right: $small-offset;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
368 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
369
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
370 .table td,
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
371 .table th {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
372 border-top: 0 !important;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
373 text-align: left;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
374 padding: $small-offset !important;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
375 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
376
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
377 .searchgroup {
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
378 position: absolute;
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
379 left: 0;
1508
0e47ed779c66 importqueue: signer added
Thomas Junk <thomas.junk@intevation.de>
parents: 1480
diff changeset
380 width: 45%;
1449
bb47531bdd22 sass to scss
Thomas Junk <thomas.junk@intevation.de>
parents: 1405
diff changeset
381 }
1276
aec9ed491dad more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff changeset
382 </style>