diff client/src/components/fairway/BottleneckDialogue.vue @ 4488:bff6c5c1db4f

client: pdf-gen: improve adding bottleneck info to pdf * Check if the bottleneck is in the current view to add its info to the exported pdf and the pdf filename, this avoid wrong filename and wrong info in pdf in case view has been changed to another location. * Set the bottleneck to print after moving to it in map.
author Fadi Abbud <fadi.abbud@intevation.de>
date Fri, 27 Sep 2019 11:15:02 +0200
parents 2d2c9f98360a
children 4c3851391b6d
line wrap: on
line diff
--- a/client/src/components/fairway/BottleneckDialogue.vue	Thu Sep 26 17:22:44 2019 +0200
+++ b/client/src/components/fairway/BottleneckDialogue.vue	Fri Sep 27 11:15:02 2019 +0200
@@ -698,6 +698,10 @@
         bn => bn.properties.name === this.selectedBottleneck
       );
       if (!bottleneck) return;
+      this.$store.commit(
+        "bottlenecks/setBottleneckForPrint",
+        this.selectedBottleneck
+      );
       this.$store.dispatch("map/moveToFeauture", {
         feature: bottleneck,
         zoom: 17,