diff client/src/components/Statistics.vue @ 3184:1ba2a7d22fbb

available_fairway_depth: display selected feature
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 07 May 2019 16:59:11 +0200
parents f64cc98746a1
children 505414dfe3e7
line wrap: on
line diff
--- a/client/src/components/Statistics.vue	Tue May 07 16:30:20 2019 +0200
+++ b/client/src/components/Statistics.vue	Tue May 07 16:59:11 2019 +0200
@@ -120,12 +120,12 @@
       const bn = this.bottlenecksList.filter(
         x => x.properties.name === this.selectedBottleneck
       )[0];
-      this.$store.commit("fairwayprofile/setSelectedFairwayAvailability", bn);
+      this.$store.commit("diagram/setSelectedFairwayAvailability", bn);
     }
   },
   computed: {
     ...mapState("application", ["showStatistics", "paneSetup", "showProfiles"]),
-    ...mapState("fairwayprofile", ["selectedFairwayAvailabilityFeature"]),
+    ...mapState("diagram", ["selectedFairwayAvailabilityFeature"]),
     ...mapState("imports", ["stretches"]),
     ...mapState("bottlenecks", ["bottlenecksList", "selectedBottleneck"]),
     ...mapGetters("map", ["openLayersMap"]),
@@ -134,10 +134,7 @@
         return this.selectedFairwayAvailabilityFeature;
       },
       set(feature) {
-        this.$store.commit(
-          "fairwayprofile/setSelectedFairwayAvailability",
-          feature
-        );
+        this.$store.commit("diagram/setSelectedFairwayAvailability", feature);
       }
     },
     entries() {
@@ -165,10 +162,7 @@
       if (this.type === this.$options.BOTTLENECKS && this.selectedBottleneck) {
         this.setSelectedBottleneck();
       } else {
-        this.$store.commit(
-          "fairwayprofile/setSelectedFairwayAvailability",
-          null
-        );
+        this.$store.commit("diagram/setSelectedFairwayAvailability", null);
       }
       this.openLayersMap()
         .getLayer("STRETCHES")