comparison client/src/components/identify/Identify.vue @ 4350:e4e32c77ed83

identify: improve legend. Keepalive keeps nash sutcliffe in component
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 09 Sep 2019 14:34:17 +0200
parents 4ed2708234b9
children 5356fd2ea3f6
comparison
equal deleted inserted replaced
4349:4ed2708234b9 4350:e4e32c77ed83
262 gaugeStatusText() { 262 gaugeStatusText() {
263 const nsc24 = this.config.gm_forecast_vs_reality_nsc_24h; 263 const nsc24 = this.config.gm_forecast_vs_reality_nsc_24h;
264 const nsc72 = this.config.gm_forecast_vs_reality_nsc_72h; 264 const nsc72 = this.config.gm_forecast_vs_reality_nsc_72h;
265 const messagesPerState = { 265 const messagesPerState = {
266 OK: this.$gettext("Nash-Sutcliffe") + `>${nsc24} /24h >${nsc72} / 72h`, 266 OK: this.$gettext("Nash-Sutcliffe") + `>${nsc24} /24h >${nsc72} / 72h`,
267 WARNING: this.$gettext("Nash-Sutcliffe") + ` < ${nsc72}`, 267 WARNING: this.$gettext("Nash-Sutcliffe") + ` < ${nsc72} / 72h`,
268 DANGER: this.$gettext("Nash-Sutcliffe") + ` < ${nsc24}`, 268 DANGER: this.$gettext("Nash-Sutcliffe") + ` < ${nsc24} / 72h`,
269 NEUTRAL: this.$gettext("Nash-Sutcliffe not available") 269 NEUTRAL: this.$gettext("Nash-Sutcliffe not available")
270 }; 270 };
271 return messagesPerState[this.gaugeStatus]; 271 return messagesPerState[this.gaugeStatus];
272 }, 272 },
273 refGaugeStatusColor() { 273 refGaugeStatusColor() {
276 refGaugeStatusText() { 276 refGaugeStatusText() {
277 const nsc24 = this.config.gm_forecast_vs_reality_nsc_24h; 277 const nsc24 = this.config.gm_forecast_vs_reality_nsc_24h;
278 const nsc72 = this.config.gm_forecast_vs_reality_nsc_72h; 278 const nsc72 = this.config.gm_forecast_vs_reality_nsc_72h;
279 const messagesPerState = { 279 const messagesPerState = {
280 OK: this.$gettext("Nash-Sutcliffe") + `>${nsc24} /24h >${nsc72} / 72h`, 280 OK: this.$gettext("Nash-Sutcliffe") + `>${nsc24} /24h >${nsc72} / 72h`,
281 WARNING: this.$gettext("Nash-Sutcliffe") + ` < ${nsc72}`, 281 WARNING: this.$gettext("Nash-Sutcliffe") + ` < ${nsc72} / 72h`,
282 DANGER: this.$gettext("Nash-Sutcliffe") + ` < ${nsc24}`, 282 DANGER: this.$gettext("Nash-Sutcliffe") + ` < ${nsc24} / 72h`,
283 NEUTRAL: this.$gettext("Nash-Sutcliffe not available") 283 NEUTRAL: this.$gettext("Nash-Sutcliffe not available")
284 }; 284 };
285 return messagesPerState[this.refGaugeStatus]; 285 return messagesPerState[this.refGaugeStatus];
286 } 286 }
287 }, 287 },