# HG changeset patch # User Markus Kottlaender # Date 1551773549 -3600 # Node ID 3dc7c0f60a628f04fb98586fc2851aa4560b10de # Parent ae257e0238f18f7d4eeaec3f5134b0bc66b4b5a7 client: identify box: formatted fa_date_info and fa_critical diff -r ae257e0238f1 -r 3dc7c0f60a62 client/src/components/identify/formatter.js --- a/client/src/components/identify/formatter.js Tue Mar 05 08:46:55 2019 +0100 +++ b/client/src/components/identify/formatter.js Tue Mar 05 09:12:29 2019 +0100 @@ -1,8 +1,9 @@ const formatter = { all(p) { if (p.key === "objnam") p.key = "Name"; - if (p.key === "staging_done") p.val = p.val ? "yes" : "no"; - if (p.key === "date_info") { + if (p.key === "staging_done" || p.key === "fa_critical") + p.val = p.val ? "yes" : "no"; + if (p.key === "date_info" || p.key === "fa_date_info") { p.val = new Date(p.val).toLocaleString(); } return p; @@ -12,6 +13,8 @@ props: p => { if (p.key === "bottleneck_id") p.key = "ID"; if (p.key === "responsible_country") p.key = "Responsible Country"; + if (p.key === "fa_date_info") p.key = "Fairway Date"; + if (p.key === "fa_critical") p.key = "Fairway Critical"; // remove certain props let propsToRemove = ["nobjnm", "reference_water_levels"];