Mercurial > gemma
changeset 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 | 47aa3be2a7de |
files | client/src/components/App.vue client/src/components/identify/Identify.vue |
diffstat | 2 files changed, 7 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/App.vue Mon Sep 09 14:24:14 2019 +0200 +++ b/client/src/components/App.vue Mon Sep 09 14:34:17 2019 +0200 @@ -17,7 +17,9 @@ <AvailableFairwayDepthDialogue v-if="isMapVisible" /> </div> <div class="d-flex flex-column align-items-end"> - <Identify v-if="isMapVisible" /> + <keep-alive> + <Identify v-if="isMapVisible" /> + </keep-alive> <Layers v-if="isMapVisible" /> </div> <Toolbar v-if="isMapVisible" />
--- a/client/src/components/identify/Identify.vue Mon Sep 09 14:24:14 2019 +0200 +++ b/client/src/components/identify/Identify.vue Mon Sep 09 14:34:17 2019 +0200 @@ -264,8 +264,8 @@ const nsc72 = this.config.gm_forecast_vs_reality_nsc_72h; const messagesPerState = { OK: this.$gettext("Nash-Sutcliffe") + `>${nsc24} /24h >${nsc72} / 72h`, - WARNING: this.$gettext("Nash-Sutcliffe") + ` < ${nsc72}`, - DANGER: this.$gettext("Nash-Sutcliffe") + ` < ${nsc24}`, + WARNING: this.$gettext("Nash-Sutcliffe") + ` < ${nsc72} / 72h`, + DANGER: this.$gettext("Nash-Sutcliffe") + ` < ${nsc24} / 72h`, NEUTRAL: this.$gettext("Nash-Sutcliffe not available") }; return messagesPerState[this.gaugeStatus]; @@ -278,8 +278,8 @@ const nsc72 = this.config.gm_forecast_vs_reality_nsc_72h; const messagesPerState = { OK: this.$gettext("Nash-Sutcliffe") + `>${nsc24} /24h >${nsc72} / 72h`, - WARNING: this.$gettext("Nash-Sutcliffe") + ` < ${nsc72}`, - DANGER: this.$gettext("Nash-Sutcliffe") + ` < ${nsc24}`, + WARNING: this.$gettext("Nash-Sutcliffe") + ` < ${nsc72} / 72h`, + DANGER: this.$gettext("Nash-Sutcliffe") + ` < ${nsc24} / 72h`, NEUTRAL: this.$gettext("Nash-Sutcliffe not available") }; return messagesPerState[this.refGaugeStatus];