diff client/src/components/Search.vue @ 5263:19715261750e

client: set bottleneck for pdf-export from search and Map popup * Mark the selected bottleneck from search for the pdf-genereation and from the map popup by opening the Surveys/Fairway Availability
author Fadi Abbud <fadi.abbud@intevation.de>
date Fri, 29 May 2020 14:02:45 +0200
parents 8d5e3ce27d20
children 62caee603217
line wrap: on
line diff
--- a/client/src/components/Search.vue	Wed May 13 19:43:57 2020 +0200
+++ b/client/src/components/Search.vue	Fri May 29 14:02:45 2020 +0200
@@ -328,6 +328,10 @@
         this.openLayersMap()
           .getLayer("BOTTLENECKS")
           .setVisible(true);
+        this.$store.commit(
+          "bottlenecks/setBottleneckForPrint",
+          resultEntry.name
+        );
       }
       if (resultEntry.type === "rhm") {
         this.openLayersMap()