Mercurial > gemma
annotate client/src/components/importoverview/LogEntry.vue @ 3937:de4c557bbc47
hydrological_conditions: leverage mixin
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 12 Jul 2019 10:03:11 +0200 |
parents | e2ed741545e1 |
children | e9d2573329da |
rev | line source |
---|---|
2579 | 1 <template> |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
2 <div class="row w-100 no-gutters text-left"> |
3506
e2ed741545e1
import_overview: added country column
Thomas Junk <thomas.junk@intevation.de>
parents:
3066
diff
changeset
|
3 <div style="width: 75px;" class="table-cell d-flex justify-content-between"> |
2902
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
4 <UISpinnerButton |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
5 @click="toggleDetails" |
2902
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
6 :loading="loading" |
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
7 :state="entry.id === show" |
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
8 :icons="['angle-right', 'angle-down']" |
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
9 /> |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
10 {{ entry.id }} |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
11 </div> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
12 <div style="width: 53px;" class="table-cell center"> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
13 {{ entry.kind.toUpperCase() }} |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
14 </div> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
15 <div style="width: 138px;" class="table-cell center"> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
16 {{ entry.enqueued | dateTime }} |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
17 </div> |
3506
e2ed741545e1
import_overview: added country column
Thomas Junk <thomas.junk@intevation.de>
parents:
3066
diff
changeset
|
18 <div style="width: 80px;" class="table-cell truncate"> |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
19 {{ entry.user }} |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
20 </div> |
3506
e2ed741545e1
import_overview: added country column
Thomas Junk <thomas.junk@intevation.de>
parents:
3066
diff
changeset
|
21 <div style="width: 55px;" class="table-cell center"> |
e2ed741545e1
import_overview: added country column
Thomas Junk <thomas.junk@intevation.de>
parents:
3066
diff
changeset
|
22 {{ userCountries[entry.user] }} |
e2ed741545e1
import_overview: added country column
Thomas Junk <thomas.junk@intevation.de>
parents:
3066
diff
changeset
|
23 </div> |
e2ed741545e1
import_overview: added country column
Thomas Junk <thomas.junk@intevation.de>
parents:
3066
diff
changeset
|
24 <div style="width: 80px;" class="table-cell truncate"> |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
25 {{ entry.signer }} |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
26 </div> |
3005
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
27 <div style="width: 72px;" :class="stateStyle"> |
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
28 {{ entry.state }} |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
29 </div> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
30 <div style="width: 44px;" class="table-cell center"> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
31 <font-awesome-icon |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
32 v-if="entry.warnings" |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
33 class="text-warning" |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
34 icon="exclamation-triangle" |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
35 fixed-width |
2919
6c5364ff0abb
client: removed a lot of unnecessary closing tags
Markus Kottlaender <markus@intevation.de>
parents:
2902
diff
changeset
|
36 /> |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
37 </div> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
38 <div style="flex-grow: 1; padding: 0;" class="table-cell text-right"> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
39 <button |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
40 :class="['action approved', { active: isApproved }]" |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
41 @click="toggleApproval($options.STATES.APPROVED)" |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
42 v-if="entry.state === 'pending'" |
2720
305af1e2975d
client: table headers: improved component to accept specific widths for columns
Markus Kottlaender <markus@intevation.de>
parents:
2699
diff
changeset
|
43 > |
2919
6c5364ff0abb
client: removed a lot of unnecessary closing tags
Markus Kottlaender <markus@intevation.de>
parents:
2902
diff
changeset
|
44 <font-awesome-icon class="small pointer" icon="check" /> |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
45 </button> |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
46 <button |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
47 :class="['action rejected', { active: isRejected }]" |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
48 @click="toggleApproval($options.STATES.REJECTED)" |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
49 v-if="entry.state === 'pending'" |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
50 > |
2919
6c5364ff0abb
client: removed a lot of unnecessary closing tags
Markus Kottlaender <markus@intevation.de>
parents:
2902
diff
changeset
|
51 <font-awesome-icon icon="times" class="small pointer" /> |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
52 </button> |
2592 | 53 </div> |
2579 | 54 </div> |
55 </template> | |
56 | |
2720
305af1e2975d
client: table headers: improved component to accept specific widths for columns
Markus Kottlaender <markus@intevation.de>
parents:
2699
diff
changeset
|
57 <style lang="sass" scoped> |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
58 .action |
2874
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
59 height: 100% |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
60 width: 50% |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
61 border: 0 |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
62 background: white |
2874
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
63 outline: none |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
64 &.approved |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
65 color: green |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
66 &.active, |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
67 &:hover |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
68 color: white |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
69 background: green |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
70 &.rejected |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
71 border-left: 1px solid #dee2e6 |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
72 color: red |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
73 &.active, |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
74 &:hover |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
75 color: white |
b9a6abef9f1c
client: more unified table layout
Markus Kottlaender <markus@intevation.de>
parents:
2799
diff
changeset
|
76 background: red |
2880
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
77 .active |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
78 .action |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
79 background-color: #d2eaee |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
80 &.rejected |
c40540889b53
client: code cleanup, slight style improvements
Markus Kottlaender <markus@intevation.de>
parents:
2875
diff
changeset
|
81 border-left: solid 1px rgba(255, 255, 255, 0.3) |
2720
305af1e2975d
client: table headers: improved component to accept specific widths for columns
Markus Kottlaender <markus@intevation.de>
parents:
2699
diff
changeset
|
82 </style> |
305af1e2975d
client: table headers: improved component to accept specific widths for columns
Markus Kottlaender <markus@intevation.de>
parents:
2699
diff
changeset
|
83 |
2579 | 84 <script> |
2592 | 85 /* This is Free Software under GNU Affero General Public License v >= 3.0 |
86 * without warranty, see README.md and license for details. | |
87 * | |
88 * SPDX-License-Identifier: AGPL-3.0-or-later | |
89 * License-Filename: LICENSES/AGPL-3.0.txt | |
90 * | |
3065
f6eae0b6c221
Client: fix license header for LogEntry.vue
Bernhard Reiter <bernhard@intevation.de>
parents:
3005
diff
changeset
|
91 * Copyright (C) 2018, 2019 by via donau |
2592 | 92 * – Österreichische Wasserstraßen-Gesellschaft mbH |
93 * Software engineering by Intevation GmbH | |
94 * | |
95 * Author(s): | |
3065
f6eae0b6c221
Client: fix license header for LogEntry.vue
Bernhard Reiter <bernhard@intevation.de>
parents:
3005
diff
changeset
|
96 * * Thomas Junk <thomas.junk@intevation.de> |
f6eae0b6c221
Client: fix license header for LogEntry.vue
Bernhard Reiter <bernhard@intevation.de>
parents:
3005
diff
changeset
|
97 * * Markus Kottländer <markus.kottlaender@intevation.de> |
2592 | 98 */ |
3506
e2ed741545e1
import_overview: added country column
Thomas Junk <thomas.junk@intevation.de>
parents:
3066
diff
changeset
|
99 import { mapState, mapGetters } from "vuex"; |
2985
1b8bb4f89227
client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents:
2919
diff
changeset
|
100 import { STATES } from "@/store/imports"; |
1b8bb4f89227
client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents:
2919
diff
changeset
|
101 import { displayError } from "@/lib/errors"; |
1b8bb4f89227
client: removed .js and .vue extention from imports
Markus Kottlaender <markus@intevation.de>
parents:
2919
diff
changeset
|
102 import { HTTP } from "@/lib/http"; |
2592 | 103 |
2579 | 104 export default { |
2881
44c6551511c1
client: importoverview: fixed review buttons
Markus Kottlaender <markus@intevation.de>
parents:
2880
diff
changeset
|
105 STATES, |
2875
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
106 props: ["entry"], |
2902
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
107 data() { |
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
108 return { |
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
109 loading: false |
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
110 }; |
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
111 }, |
2875
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
112 computed: { |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
113 ...mapState("imports", ["show"]), |
3506
e2ed741545e1
import_overview: added country column
Thomas Junk <thomas.junk@intevation.de>
parents:
3066
diff
changeset
|
114 ...mapGetters("usermanagement", ["userCountries"]), |
3005
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
115 stateStyle() { |
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
116 return [ |
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
117 "table-cell", |
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
118 "center", |
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
119 { |
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
120 "text-danger": this.entry.state === "failed", |
3066
e22ad52cc252
client: cleanup styling for LogEntry.vue a bit
Bernhard Reiter <bernhard@intevation.de>
parents:
3065
diff
changeset
|
121 "font-weight-bolder": this.entry.state === "running" |
3005
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
122 } |
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
123 ]; |
870d2a0e866b
import_overview: improved style calculus
Thomas Junk <thomas.junk@intevation.de>
parents:
3004
diff
changeset
|
124 }, |
2875
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
125 needsApproval() { |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
126 return this.entry.status === STATES.NEEDSAPPROVAL; |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
127 }, |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
128 isRejected() { |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
129 return this.entry.status === STATES.REJECTED; |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
130 }, |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
131 isApproved() { |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
132 return this.entry.status === STATES.APPROVED; |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
133 } |
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
134 }, |
2592 | 135 methods: { |
136 toggleApproval(state) { | |
137 this.$store.commit("imports/toggleApprove", { | |
138 id: this.entry.id, | |
139 newStatus: state | |
140 }); | |
141 }, | |
142 toggleDetails() { | |
143 const { id } = this.entry; | |
144 if (id === this.show) { | |
145 this.$store.commit("imports/hideDetails"); | |
2597 | 146 this.$store.commit("imports/hideAdditionalInfo"); |
147 this.$store.commit("imports/hideAdditionalLogs"); | |
2592 | 148 } else { |
2902
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
149 this.loading = true; |
2799
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
150 HTTP.get("/imports/" + this.entry.id, { |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
151 headers: { "X-Gemma-Auth": localStorage.getItem("token") } |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
152 }) |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
153 .then(response => { |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
154 this.$store.commit("imports/showDetailsFor", id); |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
155 this.$store.commit("imports/setCurrentDetails", response.data); |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
156 }) |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
157 .catch(error => { |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
158 const { status, data } = error.response; |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
159 displayError({ |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
160 title: this.$gettext("Backend Error"), |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
161 message: `${status}: ${data.message || data}` |
e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
Thomas Junk <thomas.junk@intevation.de>
parents:
2732
diff
changeset
|
162 }); |
2902
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
163 }) |
399b03e59411
client: use UISpinnerButton in bottlenecks list and imports overview
Markus Kottlaender <markus@intevation.de>
parents:
2881
diff
changeset
|
164 .finally(() => (this.loading = false)); |
2592 | 165 } |
166 } | |
2875
84effca50751
client: importoverview: cleaned up code
Markus Kottlaender <markus@intevation.de>
parents:
2874
diff
changeset
|
167 } |
2579 | 168 }; |
169 </script> |