Mercurial > gemma
changeset 5309:3c876c65cc43 zpg-exception
Client: Display "ZPG exception" attribute in the info window
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 28 May 2021 13:43:27 +0200 |
parents | d1dba3611644 |
children | 660147046ddd |
files | client/src/components/identify/formatter.js |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/identify/formatter.js Fri May 28 11:23:14 2021 +0200 +++ b/client/src/components/identify/formatter.js Fri May 28 13:43:27 2021 +0200 @@ -6,7 +6,11 @@ all(p) { if (p.key === "objnam") p.key = app.$gettext("Name"); if (p.key === "objname") p.key = app.$gettext("Name"); - if (p.key === "staging_done" || p.key === "fa_critical") + if ( + p.key === "staging_done" || + p.key === "fa_critical" || + p.key === "zpg_exception" + ) p.val = p.val ? app.$gettext("yes") : app.$gettext("no"); if ( (p.key === "date_info" || @@ -20,7 +24,6 @@ // remove certain props let propsToRemove = ["bbox"]; if (propsToRemove.indexOf(p.key) !== -1) return null; - return p; }, bottlenecks_geoserver: { @@ -121,6 +124,7 @@ if (propsToRemove.indexOf(p.key) !== -1) return null; if (p.key === "surtyp") p.key = app.$gettext("Survey type"); if (p.key === "bottleneck_id") p.key = app.$gettext("Bottleneck"); + if (p.key === "zpg_exception") p.key = app.$gettext("ZPG exception"); return p; } }