# HG changeset patch # User Markus Kottlaender # Date 1543327314 -3600 # Node ID 752b6bb2bee5dcf37ad3245c77125829414681e3 # Parent 8b85032ed3cd437255a6cdea377bdd7841dae0bd close splitscreen and clear cut tool when changing bottleneck diff -r 8b85032ed3cd -r 752b6bb2bee5 client/src/store/bottlenecks.js --- a/client/src/store/bottlenecks.js Tue Nov 27 14:52:59 2018 +0100 +++ b/client/src/store/bottlenecks.js Tue Nov 27 15:01:54 2018 +0100 @@ -49,10 +49,16 @@ } }, actions: { - setSelectedBottleneck({ state, commit, dispatch }, name) { + setSelectedBottleneck( + { state, commit, dispatch, rootState, rootGetters }, + name + ) { if (name !== state.selectedBottleneck) { commit("setSelectedSurvey", null); commit("fairwayprofile/clearCurrentProfile", null, { root: true }); + commit("application/showSplitscreen", false, { root: true }); + rootState.map.cutTool.setActive(false); + rootGetters["map/getVSourceByName"]("Cut Tool").clear(); } if (name) { commit("application/showProfiles", true, { root: true });