Mercurial > gemma
changeset 4470:0d597cda8c6b
Identify: improve legend when no sr data available
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 23 Sep 2019 16:45:44 +0200 |
parents | 0d64913b184a |
children | 294b1b6ea00f |
files | client/src/components/identify/Identify.vue |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/identify/Identify.vue Mon Sep 23 16:25:06 2019 +0200 +++ b/client/src/components/identify/Identify.vue Mon Sep 23 16:45:44 2019 +0200 @@ -407,7 +407,9 @@ const latestInHours = this.config.gm_latest_hours; const measurementsIn14D = this.config.gm_min_values_14d; const gauge = classifications.getGauge(feature); - const lastMeasureDate = filters.surveyDate(gauge.get("gm_measuredate")); + const lastMeasureDate = gauge.get("gm_measuredate") + ? filters.surveyDate(new Date(gauge.get("gm_measuredate"))) + : this.$gettext("No measurement available"); const in14Days = gauge.get("gm_n_14d"); const messagesPerState = { OK: [