Mercurial > gemma
annotate client/src/components/importqueue/Importqueue.vue @ 1561:ad3a19e222bb
importqueue: loading indicator
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 12 Dec 2018 11:24:47 +0100 |
parents | 5d84dcb79a54 |
children | 7ac802add1b9 |
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 | 4 <div class="mt-3 importqueuecard flex-grow-1"> |
5 <div class="card shadow-xs"> | |
1480 | 6 <h6 |
7 class="mb-0 py-2 px-3 border-bottom d-flex text-info align-items-center" | |
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 | 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 | 31 <button |
32 @click="setFilter('successful')" | |
33 :class="successfulStyle" | |
34 > | |
1449 | 35 <translate>Successful</translate> |
36 </button> | |
37 <button @click="setFilter('failed')" :class="failedStyle"> | |
38 <translate>Failed</translate> | |
39 </button> | |
40 <button @click="setFilter('pending')" :class="pendingStyle"> | |
41 <translate>Pending</translate> | |
42 </button> | |
43 <button @click="setFilter('rejected')" :class="rejectedStyle"> | |
44 <translate>Rejected</translate> | |
45 </button> | |
46 <button @click="setFilter('accepted')" :class="acceptedStyle"> | |
47 <translate>Accepted</translate> | |
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> |
1555
a3c2b192daa2
importqueue better collapsible behaviour
Thomas Junk <thomas.junk@intevation.de>
parents:
1554
diff
changeset
|
51 <div class="text-left d-flex flex-row w-50 border-bottom"> |
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> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
71 <div class="text-left" v-for="job in filteredImports" :key="job.id"> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
72 <Importqueuedetail :job="job"></Importqueuedetail> |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
73 </div> |
1388
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
74 <div> |
1449 | 75 <button @click="refresh" class="btn btn-info refresh"> |
76 <translate>Refresh</translate> | |
77 </button> | |
1388
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
78 </div> |
1360
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
79 </div> |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
80 </div> |
1360
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
81 </div> |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
82 </div> |
1360
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
83 </div> |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
84 </template> |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
85 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
86 <script> |
1362
ca33ad696594
remove the first empyty lines
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1360
diff
changeset
|
87 /* 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
|
88 * 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
|
89 * |
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
90 * 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
|
91 * 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
|
92 * |
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
93 * 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
|
94 * – Österreichische Wasserstraßen-Gesellschaft mbH |
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
95 * Software engineering by Intevation GmbH |
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
96 * |
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
97 * Author(s): |
3fee649d3d5d
add headers for licensing to some client files
Fadi Abbud <fadi.abbud@intevation.de>
parents:
1299
diff
changeset
|
98 * 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
|
99 */ |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
100 import { displayError } from "../../lib/errors.js"; |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
101 import { mapState } from "vuex"; |
1559
5d84dcb79a54
layout importqueue
Thomas Junk <thomas.junk@intevation.de>
parents:
1558
diff
changeset
|
102 import { HTTP } from "../../lib/http.js"; |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
103 import Importqueuedetail from "./Importqueuedetail"; |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
104 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
105 export default { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
106 name: "importqueue", |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
107 components: { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
108 Importqueuedetail |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
109 }, |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
110 data() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
111 return { |
1383
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
112 searchQuery: "", |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
113 successful: false, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
114 failed: false, |
1383
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
115 pending: false, |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
116 rejected: false, |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
117 accepted: false |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
118 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
119 }, |
1405
522488564de0
import soundingresults: layout adjusted and epsg selection added
Thomas Junk <thomas.junk@intevation.de>
parents:
1402
diff
changeset
|
120 mounted() { |
522488564de0
import soundingresults: layout adjusted and epsg selection added
Thomas Junk <thomas.junk@intevation.de>
parents:
1402
diff
changeset
|
121 this.loadQueue(); |
522488564de0
import soundingresults: layout adjusted and epsg selection added
Thomas Junk <thomas.junk@intevation.de>
parents:
1402
diff
changeset
|
122 }, |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
123 methods: { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
124 setFilter(name) { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
125 this[name] = !this[name]; |
1383
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
126 const allSet = |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
127 this.successful && |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
128 this.failed && |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
129 this.pending && |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
130 this.accepted && |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
131 this.rejected; |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
132 if (allSet) { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
133 this.successful = false; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
134 this.failed = false; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
135 this.pending = false; |
1383
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
136 this.accepted = false; |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
137 this.rejected = false; |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
138 } |
1388
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
139 }, |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
140 loadQueue() { |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
141 this.$store.dispatch("imports/getImports").catch(error => { |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
142 const { status, data } = error.response; |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
143 displayError({ |
1460 | 144 title: this.$gettext("Backend Error"), |
1388
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
145 message: `${status}: ${data.message || data}` |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
146 }); |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
147 }); |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
148 }, |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
149 refresh() { |
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
150 this.loadQueue(); |
1549
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
151 }, |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
152 showDetails(id) { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
153 HTTP.get("/imports/" + id, { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
154 headers: { "X-Gemma-Auth": localStorage.getItem("token") } |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
155 }) |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
156 .then(response => { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
157 const { entries } = response.data; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
158 this.entries = entries; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
159 this.$modal.show("details"); |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
160 }) |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
161 .catch(error => { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
162 const { status, data } = error.response; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
163 displayError({ |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
164 title: this.$gettext("Backend Error"), |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
165 message: `${status}: ${data.message || data}` |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
166 }); |
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 }, |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
169 close() { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
170 this.$modal.hide("details"); |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
171 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
172 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
173 computed: { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
174 ...mapState("imports", ["imports"]), |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
175 ...mapState("application", ["showSidebar"]), |
1549
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
176 sortIcon() { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
177 return this.sortAsc ? "sort-amount-down" : "sort-amount-up"; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
178 }, |
1383
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
179 filteredImports() { |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
180 const filtered = this.imports |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
181 .filter(element => { |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
182 if (!this.searchQuery) return true; |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
183 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
|
184 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
|
185 }); |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
186 }) |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
187 .filter(y => { |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
188 if ( |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
189 !this.successful && |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
190 !this.failed && |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
191 !this.pending && |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
192 !this.accepted && |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
193 !this.rejected |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
194 ) |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
195 return true; |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
196 let filterCriteria = []; |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
197 if (this.successful) filterCriteria.push("successful"); |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
198 if (this.failed) filterCriteria.push("failed"); |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
199 if (this.pending) filterCriteria.push("pending"); |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
200 if (this.accepted) filterCriteria.push("accepted"); |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
201 if (this.rejected) filterCriteria.push("rejected"); |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
202 const result = filterCriteria.map(selectedState => { |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
203 return y.state === selectedState; |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
204 }); |
1405
522488564de0
import soundingresults: layout adjusted and epsg selection added
Thomas Junk <thomas.junk@intevation.de>
parents:
1402
diff
changeset
|
205 return result.some(x => x); |
1383
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
206 }); |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
207 return filtered; |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
208 }, |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
209 spacerStyle() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
210 return [ |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
211 "spacer ml-3", |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
212 { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
213 "spacer-expanded": this.showSidebar, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
214 "spacer-collapsed": !this.showSidebar |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
215 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
216 ]; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
217 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
218 successfulStyle() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
219 return { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
220 btn: true, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
221 "btn-light": !this.successful, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
222 "btn-dark": this.successful |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
223 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
224 }, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
225 pendingStyle() { |
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 btn: true, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
228 "btn-light": !this.pending, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
229 "btn-dark": this.pending |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
230 }; |
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 failedStyle() { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
233 return { |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
234 btn: true, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
235 "btn-light": !this.failed, |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
236 "btn-dark": this.failed |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
237 }; |
1383
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
238 }, |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
239 rejectedStyle() { |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
240 return { |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
241 btn: true, |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
242 "btn-light": !this.rejected, |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
243 "btn-dark": this.rejected |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
244 }; |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
245 }, |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
246 acceptedStyle() { |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
247 return { |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
248 btn: true, |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
249 "btn-light": !this.accepted, |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
250 "btn-dark": this.accepted |
cbd04809ee50
importqueue: now with dynamic filtering of results
Thomas Junk <thomas.junk@intevation.de>
parents:
1362
diff
changeset
|
251 }; |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
252 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
253 } |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
254 }; |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
255 </script> |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
256 |
1449 | 257 <style lang="scss" scoped> |
1554
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
258 .jobid { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
259 width: 80px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
260 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
261 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
262 .enqueued { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
263 width: 120px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
264 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
265 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
266 .user { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
267 width: 80px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
268 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
269 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
270 .signer { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
271 width: 80px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
272 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
273 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
274 .kind { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
275 width: 80px; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
276 } |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
277 |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
278 .state { |
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 .header { |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
283 font-weight: bold; |
15d736a402c9
importqueue as collapsible
Thomas Junk <thomas.junk@intevation.de>
parents:
1549
diff
changeset
|
284 font-size: 0.9em; |
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 |
1549
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
287 .details thead { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
288 display: block; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
289 } |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
290 .details tbody { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
291 display: block; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
292 } |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
293 |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
294 .details tbody { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
295 height: 260px; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
296 overflow-y: auto; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
297 overflow-x: hidden; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
298 } |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
299 |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
300 .closebutton { |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
301 top: $small-offset; |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
302 } |
b03db5726ca5
importqueue detail view
Thomas Junk <thomas.junk@intevation.de>
parents:
1530
diff
changeset
|
303 |
1449 | 304 .refresh { |
305 position: absolute; | |
306 right: $offset; | |
307 bottom: $offset; | |
308 } | |
1388
df30521b2c0b
importqueue: refreshbutton
Thomas Junk <thomas.junk@intevation.de>
parents:
1383
diff
changeset
|
309 |
1449 | 310 .spacer { |
311 height: 100vh; | |
312 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
313 |
1449 | 314 .spacer-collapsed { |
315 min-width: $icon-width + $offset; | |
316 transition: $transition-fast; | |
317 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
318 |
1449 | 319 .spacer-expanded { |
1530 | 320 min-width: $sidebar-width; |
1449 | 321 } |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
322 |
1449 | 323 .importqueuecard { |
1529 | 324 width: 97%; |
325 margin-left: $offset; | |
326 margin-right: $offset; | |
1449 | 327 min-height: 20rem; |
328 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
329 |
1449 | 330 .card-body { |
331 width: 100%; | |
332 margin-left: auto; | |
333 margin-right: auto; | |
334 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
335 |
1449 | 336 .searchandfilter { |
337 position: relative; | |
338 margin-bottom: $xx-large-offset; | |
339 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
340 |
1449 | 341 .filters { |
342 position: absolute; | |
343 right: 0; | |
344 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
345 |
1449 | 346 .filters button { |
347 margin-right: $small-offset; | |
348 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
349 |
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
350 .table td, |
1449 | 351 .table th { |
352 border-top: 0 !important; | |
353 text-align: left; | |
354 padding: $small-offset !important; | |
355 } | |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
356 |
1449 | 357 .searchgroup { |
358 position: absolute; | |
359 left: 0; | |
1508
0e47ed779c66
importqueue: signer added
Thomas Junk <thomas.junk@intevation.de>
parents:
1480
diff
changeset
|
360 width: 45%; |
1449 | 361 } |
1276
aec9ed491dad
more cleanup in client/src
Markus Kottlaender <markus@intevation.de>
parents:
diff
changeset
|
362 </style> |