# HG changeset patch # User Markus Kottlaender # Date 1557329390 -7200 # Node ID dffcf1cc8a8b641e992799cca06ea0187130345e # Parent bf571429515f456807c09473cf58d21bc01bd413 client: identify: set type in fairway availability dialog when necessary diff -r bf571429515f -r dffcf1cc8a8b client/src/components/map/MapPopup.vue --- a/client/src/components/map/MapPopup.vue Wed May 08 17:15:08 2019 +0200 +++ b/client/src/components/map/MapPopup.vue Wed May 08 17:29:50 2019 +0200 @@ -203,6 +203,7 @@ this.close(); }, openFairwayAvailabilityForBottleneck(bottleneck) { + this.$store.commit("diagram/type", "bottlenecks"); this.$store.dispatch( "bottlenecks/setSelectedBottleneck", bottleneck.get("objnam") @@ -221,6 +222,7 @@ this.openFairwayAvailability(); }, openFairwayAvailabilityForStretch(stretch) { + this.$store.commit("diagram/type", "stretches"); this.$store.commit("imports/selectedStretchId", stretch.getId()); this.$store.dispatch("map/moveToFeauture", { feature: stretch, diff -r bf571429515f -r dffcf1cc8a8b client/src/store/map.js --- a/client/src/store/map.js Wed May 08 17:15:08 2019 +0200 +++ b/client/src/store/map.js Wed May 08 17:29:50 2019 +0200 @@ -369,12 +369,12 @@ !gauges.length ) { if (rootState.imports.selectedStretchId === stretches[0].getId()) { - commit("application/showStatistics", false, { root: true }); commit("imports/selectedStretchId", null, { root: true }); } else { commit("application/showStatistics", true, { root: true }); + commit("diagram/type", "stretches", { root: true }); commit("imports/selectedStretchId", stretches[0].getId(), { root: true });