Mercurial > gemma
diff client/src/components/identify/formatter.js @ 3636:89a39783c20a
Add forecast and measurement quality parameters to sections and stretches
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 11 Jun 2019 20:32:25 +0200 |
parents | 6d6577a87963 |
children | bb66e144dece |
line wrap: on
line diff
--- a/client/src/components/identify/formatter.js Tue Jun 11 20:28:38 2019 +0200 +++ b/client/src/components/identify/formatter.js Tue Jun 11 20:32:25 2019 +0200 @@ -58,10 +58,22 @@ label: "Waterway Profile" }, stretches_geoserver: { - label: "Stretch" + label: "Stretch", + props: p => { + if (p.key === "gm_measuredate") p.key = "Min. Gauge Waterlevel Date"; + if (p.key === "gm_n_14d") p.key = "Min. G.W. Count in Last 14 Days"; + + return p; + } }, sections_geoserver: { - label: "Section" + label: "Section", + props: p => { + if (p.key === "gm_measuredate") p.key = "Min. Gauge Waterlevel Date"; + if (p.key === "gm_n_14d") p.key = "Min. G.W. Count in Last 14 Days"; + + return p; + } }, gauges_geoserver: { label: "Gauge",