changeset 4735:7a40a39853a9

client: fix comparison in pdf-filename
author Fadi Abbud <fadi.abbud@intevation.de>
date Fri, 18 Oct 2019 10:45:25 +0200
parents 89abbf65292c
children fcbd585ae308 e8df3aeb0a32
files client/src/components/Pdftool.vue
diffstat 1 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue	Thu Oct 17 19:06:51 2019 +0200
+++ b/client/src/components/Pdftool.vue	Fri Oct 18 10:45:25 2019 +0200
@@ -208,12 +208,7 @@
     },
     filename() {
       let filename = "map";
-      if (
-        this.bottleneckForPrint &&
-        this.openLayersMap()
-          .getLayer("BOTTLENECKISOLINE")
-          .getVisible()
-      ) {
+      if (this.bottleneckForPrint) {
         // TODO: Check if the view contains the selected bottleneck
         // to avoid including bottleneck info in pdf in case view has changed to another location
         filename = `BN-${sanitize(this.bottleneckForPrint).replace(/ /g, "-")}`;