changeset 4863:544e5a2eacb6

Prepare formatting of ref gauges as links
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 05 Dec 2019 13:01:15 +0100
parents 1a9e3e5feaa7
children 6a148617e012
files client/src/components/identify/Identify.vue client/src/components/identify/formatter.js
diffstat 2 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/identify/Identify.vue	Wed Dec 04 16:00:19 2019 +0100
+++ b/client/src/components/identify/Identify.vue	Thu Dec 05 13:01:15 2019 +0100
@@ -162,8 +162,14 @@
               v-if="prop.val"
               class="d-flex justify-content-between px-2"
             >
-              <b>{{ prop.key }}</b>
-              <span>{{ prop.val }}</span>
+              <template v-if="prop.key != 'gauge objname'">
+                <b>{{ prop.key }}</b>
+                <span>{{ prop.val }}</span>
+              </template>
+              <template v-else>
+                <b><translate>Reference Gauge</translate></b>
+                <a>{{ prop.val }}</a>
+              </template>
             </small>
           </div>
         </div>
--- a/client/src/components/identify/formatter.js	Wed Dec 04 16:00:19 2019 +0100
+++ b/client/src/components/identify/formatter.js	Thu Dec 05 13:01:15 2019 +0100
@@ -31,7 +31,6 @@
         p.key = app.$gettext("Responsible Country");
       if (p.key === "fa_date_info") p.key = app.$gettext("Fairway Date");
       if (p.key === "fa_critical") p.key = app.$gettext("Fairway Critical");
-      if (p.key === "gauge_objname") p.key = app.$gettext("Reference Gauge");
       if (p.key === "source_organization")
         p.key = app.$gettext("Source Organization");
       if (p.key === "gm_measuredate")