comparison client/src/components/map/MapPopup.vue @ 3207:ba7bc3740fb3

client: renamed store modules to better reflect their context
author Markus Kottlaender <markus@intevation.de>
date Wed, 08 May 2019 17:43:18 +0200
parents dffcf1cc8a8b
children 2dab20bed284
comparison
equal deleted inserted replaced
3206:dffcf1cc8a8b 3207:ba7bc3740fb3
201 openFairwayAvailability() { 201 openFairwayAvailability() {
202 this.$store.commit("application/showStatistics", true); 202 this.$store.commit("application/showStatistics", true);
203 this.close(); 203 this.close();
204 }, 204 },
205 openFairwayAvailabilityForBottleneck(bottleneck) { 205 openFairwayAvailabilityForBottleneck(bottleneck) {
206 this.$store.commit("diagram/type", "bottlenecks"); 206 this.$store.commit("fairwayavailability/type", "bottlenecks");
207 this.$store.dispatch( 207 this.$store.dispatch(
208 "bottlenecks/setSelectedBottleneck", 208 "bottlenecks/setSelectedBottleneck",
209 bottleneck.get("objnam") 209 bottleneck.get("objnam")
210 ); 210 );
211 this.$store.dispatch("map/moveMap", { 211 this.$store.dispatch("map/moveMap", {
220 preventZoomOut: true 220 preventZoomOut: true
221 }); 221 });
222 this.openFairwayAvailability(); 222 this.openFairwayAvailability();
223 }, 223 },
224 openFairwayAvailabilityForStretch(stretch) { 224 openFairwayAvailabilityForStretch(stretch) {
225 this.$store.commit("diagram/type", "stretches"); 225 this.$store.commit("fairwayavailability/type", "stretches");
226 this.$store.commit("imports/selectedStretchId", stretch.getId()); 226 this.$store.commit("imports/selectedStretchId", stretch.getId());
227 this.$store.dispatch("map/moveToFeauture", { 227 this.$store.dispatch("map/moveToFeauture", {
228 feature: stretch, 228 feature: stretch,
229 zoom: 17 229 zoom: 17
230 }); 230 });