Mercurial > gemma
comparison client/src/components/map/MapPopup.vue @ 3206:dffcf1cc8a8b
client: identify: set type in fairway availability dialog when necessary
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Wed, 08 May 2019 17:29:50 +0200 |
parents | 1253fe15e3e3 |
children | ba7bc3740fb3 |
comparison
equal
deleted
inserted
replaced
3205:bf571429515f | 3206:dffcf1cc8a8b |
---|---|
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.dispatch( | 207 this.$store.dispatch( |
207 "bottlenecks/setSelectedBottleneck", | 208 "bottlenecks/setSelectedBottleneck", |
208 bottleneck.get("objnam") | 209 bottleneck.get("objnam") |
209 ); | 210 ); |
210 this.$store.dispatch("map/moveMap", { | 211 this.$store.dispatch("map/moveMap", { |
219 preventZoomOut: true | 220 preventZoomOut: true |
220 }); | 221 }); |
221 this.openFairwayAvailability(); | 222 this.openFairwayAvailability(); |
222 }, | 223 }, |
223 openFairwayAvailabilityForStretch(stretch) { | 224 openFairwayAvailabilityForStretch(stretch) { |
225 this.$store.commit("diagram/type", "stretches"); | |
224 this.$store.commit("imports/selectedStretchId", stretch.getId()); | 226 this.$store.commit("imports/selectedStretchId", stretch.getId()); |
225 this.$store.dispatch("map/moveToFeauture", { | 227 this.$store.dispatch("map/moveToFeauture", { |
226 feature: stretch, | 228 feature: stretch, |
227 zoom: 17 | 229 zoom: 17 |
228 }); | 230 }); |