Mercurial > gemma
changeset 2439:c3c014435e88
client: identify box: formatted streches
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 01 Mar 2019 10:38:44 +0100 |
parents | bbc31150248c |
children | 999bb511ef67 |
files | client/src/components/identify/formatter.js |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/identify/formatter.js Fri Mar 01 10:31:24 2019 +0100 +++ b/client/src/components/identify/formatter.js Fri Mar 01 10:38:44 2019 +0100 @@ -61,6 +61,16 @@ return p; } + }, + stretches_geoserver: { + label: "Stretch", + props: p => { + if (p.key === "date_info") { + p.key = "Date info"; + p.val = new Date(p.val).toLocaleString(); + } + return p; + } } };