# HG changeset patch # User Markus Kottlaender # Date 1556880916 -7200 # Node ID a90091aaef670726bf2b5e34e1a6cbe16f779838 # Parent cdfb0093b7b194ea53bbe2f798b13d2dd0b088f2 client: fairwayprofile: close profile diagram when switching bottlenecks diff -r cdfb0093b7b1 -r a90091aaef67 client/src/components/fairway/Fairwayprofile.vue --- 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: { diff -r cdfb0093b7b1 -r a90091aaef67 client/src/store/bottlenecks.js --- 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")