annotate client/src/systemconfiguration/systemconfiguration.vue @ 864:2079fabbe6dd

client: add fill-colour setting to systemconfig * Add simple headlines to show what we are setting. * Add a section to select a colour with the vue-color chrome-picker. * yarn add vue-color.
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 28 Sep 2018 21:39:01 +0200
parents d1863e91b039
children 9aa545585bdd
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
1 <template>
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
2 <div class="d-flex flex-row">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
3 <div class="card sysconfig">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
4 <div class="card-header shadow-sm text-white bg-info mb-6">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
5 Systemconfiguration
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
6 </div>
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
7 <div class="card-body">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
8 <h4>Bottleneck Areas stroke-color</h4>
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
9 <div class="inputs form-group row">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
10 <div class="col-2">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
11 <label for="r"></label>R<input class="form-control form-control-sm" v-model="r" id="r" placeholder="255">
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
12 </div>
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
13 <div class="col-2">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
14 <label for="g"></label>G<input class="form-control form-control-sm" v-model.number="g" type="text" id="g" placeholder="255">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
15 </div>
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
16 <div class="col-2">
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
17 <label for="b"></label>B<input class="form-control form-control-sm" v-model.number="b" type="text" id="b" placeholder="255">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
18 </div>
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
19 <div class="col-2">
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
20
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
21 <label for="a"></label>A<input class="form-control form-control-sm" v-model.number="a" type="text" id="a" placeholder="1.0">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
22 </div>
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
23 </div>
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
24 <div class="sendbutton">
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
25 <a @click.prevent="submit" class="btn btn-info">Send</a>
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
26 </div>
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
27 <h4>Bottleneck Areas fill-color</h4>
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
28 <chrome-picker v-model="fillColor" />
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
29 </div> <!-- card-body -->
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
30 </div>
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
31 </div>
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
32 </template>
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
33
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
34 <style lang="scss">
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
35 .sendbutton {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
36 position: absolute;
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
37 right: $large-offset;
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
38 bottom: $large-offset;
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
39 }
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
40 .inputs {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
41 margin-left: auto;
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
42 margin-right: auto;
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
43 }
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
44 .sysconfig {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
45 margin-top: $offset;
863
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
46 margin-left: 30vw;
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
47 margin-right: auto;
863
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
48 width: 60vw;
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
49 max-width: 500px;
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
50 mind-heigth: 500px;
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
51 height: 80vh;
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
52 }
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
53 </style>
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
54
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
55 <script>
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
56 import { Chrome } from "vue-color";
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
57
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
58 import { HTTP } from "../application/lib/http";
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
59 import { displayError } from "../application/lib/errors.js";
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
60 export default {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
61 name: "systemconfiguration",
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
62 data() {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
63 return {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
64 sent: false,
863
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
65 r: 124,
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
66 g: 115,
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
67 b: 116,
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
68 a: 0.9,
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
69 fillColor: { r: 0, g: 0, b: 0, a: 1.0 },
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
70 currentConfig: null
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
71 };
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
72 },
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
73 components: { "chrome-picker": Chrome },
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
74 methods: {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
75 submit() {
863
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
76 const payload = {
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
77 r: parseInt(this.r),
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
78 g: parseInt(this.g),
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
79 b: parseInt(this.b),
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
80 a: parseFloat(this.a)
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
81 };
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
82 HTTP.put("/system/style/Bottlenecks/stroke", payload, {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
83 headers: {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
84 "X-Gemma-Auth": localStorage.getItem("token"),
863
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
85 "Content-type": "application/json"
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
86 }
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
87 })
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
88 .then()
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
89 .catch(error => {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
90 const { status, data } = error.response;
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
91 displayError({
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
92 title: "Backend Error",
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
93 message: `${status}: ${data.message || data}`
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
94 });
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
95 });
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
96
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
97 HTTP.put("/system/style/Bottlenecks/fill", this.fillColor.rgba, {
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
98 headers: {
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
99 "X-Gemma-Auth": localStorage.getItem("token"),
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
100 "Content-type": "application/json"
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
101 }
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
102 })
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
103 .then()
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
104 .catch(error => {
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
105 const { status, data } = error.response;
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
106 displayError({
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
107 title: "Backend Error",
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
108 message: `${status}: ${data.message || data}`
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
109 });
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
110 });
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
111 }
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
112 },
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
113 mounted() {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
114 HTTP.get("/system/style/Bottlenecks/stroke", {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
115 headers: {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
116 "X-Gemma-Auth": localStorage.getItem("token"),
863
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
117 "Content-type": "application/json"
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
118 }
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
119 })
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
120 .then(response => {
863
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
121 // console.log(response.data);
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
122 let colour = response.data.colour;
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
123 this.r = colour.r;
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
124 this.g = colour.g;
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
125 this.b = colour.b;
d1863e91b039 client: fix systemconfiguration for stroke colour
Bernhard Reiter <bernhard@intevation.de>
parents: 856
diff changeset
126 this.a = colour.a;
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
127 })
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
128 .catch(error => {
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
129 const { status, data } = error.response;
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
130 displayError({
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
131 title: "Backend Error",
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
132 message: `${status}: ${data.message || data}`
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
133 });
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
134 });
864
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
135
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
136 HTTP.get("/system/style/Bottlenecks/fill", {
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
137 headers: {
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
138 "X-Gemma-Auth": localStorage.getItem("token"),
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
139 "Content-type": "application/json"
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
140 }
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
141 })
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
142 .then(response => {
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
143 this.fillColor = response.data.colour;
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
144 })
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
145 .catch(error => {
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
146 const { status, data } = error.response;
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
147 displayError({
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
148 title: "Backend Error",
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
149 message: `${status}: ${data.message || data}`
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
150 });
2079fabbe6dd client: add fill-colour setting to systemconfig
Bernhard Reiter <bernhard@intevation.de>
parents: 863
diff changeset
151 });
856
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
152 }
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
153 };
ce0d50b1d126 systemconfig WIP
Thomas Junk <thomas.junk@intevation.de>
parents:
diff changeset
154 </script>