Mercurial > gemma
changeset 1386:752b6bb2bee5
close splitscreen and clear cut tool when changing bottleneck
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Tue, 27 Nov 2018 15:01:54 +0100 |
parents | 8b85032ed3cd |
children | 13c6d44cf604 |
files | client/src/store/bottlenecks.js |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 });