Mercurial > gemma
comparison client/src/store/bottlenecks.js @ 2566:83b938bf4da9
client: prepared store and minimized splitscreens for multiple simultaneous diagrams
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Mon, 11 Mar 2019 11:34:54 +0100 |
parents | 9bf6b767a56a |
children | 1686ec185155 |
comparison
equal
deleted
inserted
replaced
2565:114979e97a6c | 2566:83b938bf4da9 |
---|---|
65 return new Promise((resolve, reject) => { | 65 return new Promise((resolve, reject) => { |
66 if (name !== state.selectedBottleneck) { | 66 if (name !== state.selectedBottleneck) { |
67 commit("selectedSurvey", null); | 67 commit("selectedSurvey", null); |
68 commit("application/splitscreenLoading", true, { root: true }); | 68 commit("application/splitscreenLoading", true, { root: true }); |
69 commit("application/showSplitscreen", false, { root: true }); | 69 commit("application/showSplitscreen", false, { root: true }); |
70 commit("application/removeSplitscreen", "fairwayprofile", { | |
71 root: true | |
72 }); | |
70 setTimeout(() => { | 73 setTimeout(() => { |
71 commit("fairwayprofile/clearCurrentProfile", null, { root: true }); | 74 commit("fairwayprofile/clearCurrentProfile", null, { root: true }); |
72 }, 350); | 75 }, 350); |
73 rootState.map.cutTool.setActive(false); | 76 rootState.map.cutTool.setActive(false); |
74 rootGetters["map/getVSourceByName"](LAYERS.CUTTOOL).clear(); | 77 rootGetters["map/getVSourceByName"](LAYERS.CUTTOOL).clear(); |