changeset 3362:bda4034304b1

client: identify: added formatting for latest gauge waterlevel
author Markus Kottlaender <markus@intevation.de>
date Tue, 21 May 2019 17:47:25 +0200
parents b2ccfebd5616
children 4b8ca498c4cd
files client/src/components/identify/formatter.js
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/identify/formatter.js	Tue May 21 17:38:54 2019 +0200
+++ b/client/src/components/identify/formatter.js	Tue May 21 17:47:25 2019 +0200
@@ -57,7 +57,12 @@
     label: "Section"
   },
   gauges_geoserver: {
-    label: "Gauge"
+    label: "Gauge",
+    props: p => {
+      if (p.key === "gm_waterlevel") p.key = "Latest Waterlevel";
+
+      return p;
+    }
   }
 };