changeset 2454:219c5b57ef5b

Added icon to gouges in search result. Could be better, but the more fitting "ruler-vertical" is not available in font awesome 4.7...
author Sascha Wilde <wilde@intevation.de>
date Fri, 01 Mar 2019 18:10:26 +0100
parents 00cac7890574
children 54c9fe587fe6 bca9a7a89f28
files client/src/components/Search.vue
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Search.vue	Fri Mar 01 17:26:08 2019 +0100
+++ b/client/src/components/Search.vue	Fri Mar 01 18:10:26 2019 +0100
@@ -58,6 +58,12 @@
             class="mr-1"
             fixed-width
           />
+          <font-awesome-icon
+            icon="ruler"
+            v-if="entry.type === 'gauge'"
+            class="mr-1"
+            fixed-width
+          />
           {{ entry.name }}
         </a>
       </div>
@@ -269,6 +275,7 @@
         if (resultEntry.type === "bottleneck") zoom = 17;
         if (resultEntry.type === "rhm") zoom = 15;
         if (resultEntry.type === "city") zoom = 13;
+        if (resultEntry.type === "gauge") zoom = 15;
         this.$store.commit("map/moveMap", {
           coordinates: resultEntry.geom.coordinates,
           zoom,