diff client/src/application/Topbar.vue @ 1142:dc3f0277628a

feat: Importqueue listing (Proof of concept) This is only a prototypical overview of importqueue data from backend. Uses GET to retrieve an overview of imports. Shows in separate tables. Further concept needs to be developed to progress..
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 12 Nov 2018 15:00:04 +0100
parents d9e6a1f6f394
children 846e336d8ee5
line wrap: on
line diff
--- a/client/src/application/Topbar.vue	Fri Nov 09 10:57:49 2018 +0100
+++ b/client/src/application/Topbar.vue	Mon Nov 12 15:00:04 2018 +0100
@@ -139,7 +139,11 @@
     };
   },
   computed: {
-    ...mapState("application", ["showSidebar", "showSplitscreen", "showSearchbar"]),
+    ...mapState("application", [
+      "showSidebar",
+      "showSplitscreen",
+      "showSearchbar"
+    ]),
     ...mapState("map", ["openLayersMap"]),
     ...mapState("fairwayprofile", ["currentProfile"]),
     searchIndicator: function() {
@@ -216,10 +220,8 @@
         let newZoom = 11;
         if (resultEntry.type === "bottleneck")
           newZoom = Math.max(17, currentZoom);
-        if (resultEntry.type === "rhm")
-          newZoom = Math.max(15, currentZoom);
-        if (resultEntry.type === "city")
-          newZoom = Math.max(13, currentZoom);
+        if (resultEntry.type === "rhm") newZoom = Math.max(15, currentZoom);
+        if (resultEntry.type === "city") newZoom = Math.max(13, currentZoom);
         view.animate(
           {
             zoom: newZoom,
@@ -238,7 +240,7 @@
       if (!this.showSearchbar) {
         setTimeout(setFocus, 300);
       }
-      this.$store.commit("application/showSearchbar", !this.showSearchbar)
+      this.$store.commit("application/showSearchbar", !this.showSearchbar);
     }
   }
 };