diff client/src/store/bottlenecks.js @ 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 87e0422cffa7
children 1253fe15e3e3
line wrap: on
line diff
--- 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")