changeset 2434:817b3d726b43

client: loadBottlenecks (bottleneck_overview) only where needed
author Markus Kottlaender <markus@intevation.de>
date Fri, 01 Mar 2019 08:18:29 +0100
parents 64be06696899
children 3679d604645e
files client/src/components/Maplayer.vue client/src/components/fairway/Profiles.vue
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Maplayer.vue	Fri Mar 01 08:03:42 2019 +0100
+++ b/client/src/components/Maplayer.vue	Fri Mar 01 08:18:29 2019 +0100
@@ -399,7 +399,6 @@
     this.updateBottleneckFilter("does_not_exist", "1999-10-01");
     this.$store.dispatch("map/disableIdentifyTool");
     this.$store.dispatch("map/enableIdentifyTool");
-    this.$store.dispatch("bottlenecks/loadBottlenecks");
   }
 };
 </script>
--- a/client/src/components/fairway/Profiles.vue	Fri Mar 01 08:03:42 2019 +0100
+++ b/client/src/components/fairway/Profiles.vue	Fri Mar 01 08:18:29 2019 +0100
@@ -462,6 +462,9 @@
         preventZoomOut: true
       });
     }
+  },
+  mounted() {
+    this.$store.dispatch("bottlenecks/loadBottlenecks");
   }
 };
 </script>