Mercurial > gemma
comparison client/src/components/admin/Systemconfiguration.vue @ 1460:3d5aea677345
merge
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Mon, 03 Dec 2018 16:05:47 +0100 |
parents | 33dda08d67be |
children | 9b81ac91a43e |
comparison
equal
deleted
inserted
replaced
1459:18ddb6935aa6 | 1460:3d5aea677345 |
---|---|
126 }) | 126 }) |
127 .then() | 127 .then() |
128 .catch(error => { | 128 .catch(error => { |
129 const { status, data } = error.response; | 129 const { status, data } = error.response; |
130 displayError({ | 130 displayError({ |
131 title: "Backend Error", | 131 title: this.$gettext("Backend Error"), |
132 message: `${status}: ${data.message || data}` | 132 message: `${status}: ${data.message || data}` |
133 }); | 133 }); |
134 }); | 134 }); |
135 | 135 |
136 HTTP.put("/system/style/Bottlenecks/fill", this.fillColor.rgba, { | 136 HTTP.put("/system/style/Bottlenecks/fill", this.fillColor.rgba, { |
141 }) | 141 }) |
142 .then() | 142 .then() |
143 .catch(error => { | 143 .catch(error => { |
144 const { status, data } = error.response; | 144 const { status, data } = error.response; |
145 displayError({ | 145 displayError({ |
146 title: "Backend Error", | 146 title: this.$gettext("Backend Error"), |
147 message: `${status}: ${data.message || data}` | 147 message: `${status}: ${data.message || data}` |
148 }); | 148 }); |
149 }); | 149 }); |
150 } | 150 } |
151 }, | 151 }, |
160 this.strokeColor = response.data.colour; | 160 this.strokeColor = response.data.colour; |
161 }) | 161 }) |
162 .catch(error => { | 162 .catch(error => { |
163 const { status, data } = error.response; | 163 const { status, data } = error.response; |
164 displayError({ | 164 displayError({ |
165 title: "Backend Error", | 165 title: this.$gettext("Backend Error"), |
166 message: `${status}: ${data.message || data}` | 166 message: `${status}: ${data.message || data}` |
167 }); | 167 }); |
168 }); | 168 }); |
169 | 169 |
170 HTTP.get("/system/style/Bottlenecks/fill", { | 170 HTTP.get("/system/style/Bottlenecks/fill", { |
177 this.fillColor = response.data.colour; | 177 this.fillColor = response.data.colour; |
178 }) | 178 }) |
179 .catch(error => { | 179 .catch(error => { |
180 const { status, data } = error.response; | 180 const { status, data } = error.response; |
181 displayError({ | 181 displayError({ |
182 title: "Backend Error", | 182 title: this.$gettext("Backend Error"), |
183 message: `${status}: ${data.message || data}` | 183 message: `${status}: ${data.message || data}` |
184 }); | 184 }); |
185 }); | 185 }); |
186 } | 186 } |
187 }; | 187 }; |