diff client/src/components/Pdftool.vue @ 5288:48bef30cdb72

Client: limit displaying of error popup to only pdf-export mode(ECDIS layer)
author Fadi Abbud <fadi.abbud@intevation.de>
date Fri, 03 Jul 2020 15:37:42 +0200
parents 12e2422ae57c
children 660147046ddd
line wrap: on
line diff
--- a/client/src/components/Pdftool.vue	Wed Jul 01 17:57:17 2020 +0200
+++ b/client/src/components/Pdftool.vue	Fri Jul 03 15:37:42 2020 +0200
@@ -345,6 +345,7 @@
        * Details: https://gis.stackexchange.com/questions/328933/openlayers-generating-clientside-pdfs
        *
        */
+      this.$store.commit("application/setOngoingPDFExport", true);
       this.readyToGenerate = false;
       this.setPDFDimension();
       // FUTURE: consider margins
@@ -511,6 +512,7 @@
         map.setSize(this.mapSize);
         map.getView().setResolution(this.resolution);
         this.readyToGenerate = true;
+        this.$store.commit("application/setOngoingPDFExport", false);
       });
 
       const size = map.getSize();
@@ -548,6 +550,7 @@
           .getView()
           .setResolution(this.resolution);
       } finally {
+        this.$store.commit("application/setOngoingPDFExport", false);
         this.readyToGenerate = true;
       }
     },