changeset 2435:3679d604645e

client: renamed store action There will be a second action to load bottlenecks with all properties like for the map. So I renamed the old action to loadBottleneckList. The new one will then be named loadBottlenecks... or loadBottlenecksFull or sth.
author Markus Kottlaender <markus@intevation.de>
date Fri, 01 Mar 2019 08:28:00 +0100
parents 817b3d726b43
children 64ff5984351e
files client/src/components/Bottlenecks.vue client/src/components/ImportSoundingresults.vue client/src/components/fairway/Profiles.vue client/src/store/bottlenecks.js
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Bottlenecks.vue	Fri Mar 01 08:18:29 2019 +0100
+++ b/client/src/components/Bottlenecks.vue	Fri Mar 01 08:28:00 2019 +0100
@@ -287,7 +287,7 @@
     }
   },
   mounted() {
-    this.$store.dispatch("bottlenecks/loadBottlenecks");
+    this.$store.dispatch("bottlenecks/loadBottlenecksList");
   }
 };
 </script>
--- a/client/src/components/ImportSoundingresults.vue	Fri Mar 01 08:18:29 2019 +0100
+++ b/client/src/components/ImportSoundingresults.vue	Fri Mar 01 08:28:00 2019 +0100
@@ -279,7 +279,7 @@
     }
   },
   mounted() {
-    this.$store.dispatch("bottlenecks/loadBottlenecks");
+    this.$store.dispatch("bottlenecks/loadBottlenecksList");
   },
   watch: {
     showContextBox() {
--- a/client/src/components/fairway/Profiles.vue	Fri Mar 01 08:18:29 2019 +0100
+++ b/client/src/components/fairway/Profiles.vue	Fri Mar 01 08:28:00 2019 +0100
@@ -464,7 +464,7 @@
     }
   },
   mounted() {
-    this.$store.dispatch("bottlenecks/loadBottlenecks");
+    this.$store.dispatch("bottlenecks/loadBottlenecksList");
   }
 };
 </script>
--- a/client/src/store/bottlenecks.js	Fri Mar 01 08:18:29 2019 +0100
+++ b/client/src/store/bottlenecks.js	Fri Mar 01 08:28:00 2019 +0100
@@ -102,7 +102,7 @@
         }
       });
     },
-    loadBottlenecks({ commit }) {
+    loadBottlenecksList({ commit }) {
       return new Promise((resolve, reject) => {
         var bottleneckFeatureCollectionRequest = new WFS().writeGetFeature({
           srsName: "EPSG:4326",