Mercurial > gemma
changeset 3149:a90091aaef67
client: fairwayprofile: close profile diagram when switching bottlenecks
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 03 May 2019 12:55:16 +0200 |
parents | cdfb0093b7b1 |
children | 38d9edce3331 |
files | client/src/components/fairway/Fairwayprofile.vue client/src/store/bottlenecks.js |
diffstat | 2 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/Fairwayprofile.vue Fri May 03 11:39:41 2019 +0200 +++ b/client/src/components/fairway/Fairwayprofile.vue Fri May 03 12:55:16 2019 +0200 @@ -160,6 +160,9 @@ }, fairwayData() { this.drawDiagram(); + }, + selectedBottleneck() { + this.$store.commit("application/paneSetup", "DEFAULT"); } }, methods: {
--- a/client/src/store/bottlenecks.js Fri May 03 11:39:41 2019 +0200 +++ b/client/src/store/bottlenecks.js Fri May 03 12:55:16 2019 +0200 @@ -64,15 +64,8 @@ return new Promise((resolve, reject) => { if (name !== state.selectedBottleneck) { commit("selectedSurvey", null); - commit("application/splitscreenLoading", true, { root: true }); - commit("application/showSplitscreen", false, { root: true }); - commit("application/removeSplitscreen", "fairwayprofile", { - root: true - }); - setTimeout(() => { - commit("fairwayprofile/clearCurrentProfile", null, { root: true }); - commit("application/splitscreenLoading", false, { root: true }); - }, 350); + commit("fairwayprofile/additionalSurvey", null, { root: true }); + commit("fairwayprofile/clearCurrentProfile", null, { root: true }); commit("map/cutToolEnabled", false, { root: true }); rootState.map.openLayersMaps.forEach(m => { m.getLayer("CUTTOOL")