diff client/src/store/application.js @ 2549:9bf6b767a56a

client: refactored and improved splitscreen for diagrams To make different diagrams possible, the splitscreen view needed to be decoupled from the cross profiles. Also the style has changed to make it more consistent with the rest of the app. The standard box header is now used and there are collapse and expand animations.
author Markus Kottlaender <markus@intevation.de>
date Fri, 08 Mar 2019 08:50:47 +0100
parents c06b001dc26b
children 83b938bf4da9
line wrap: on
line diff
--- a/client/src/store/application.js	Thu Mar 07 20:03:43 2019 +0100
+++ b/client/src/store/application.js	Fri Mar 08 08:50:47 2019 +0100
@@ -26,6 +26,8 @@
     showSidebar: false,
     showUsermenu: false,
     showSplitscreen: false,
+    splitscreenLoading: false,
+    splitscreen: null,
     showSearchbar: false,
     showSearchbarLastState: false,
     showIdentify: false,
@@ -75,6 +77,12 @@
     showSplitscreen: (state, show) => {
       state.showSplitscreen = show;
     },
+    splitscreenLoading: (state, loading) => {
+      state.splitscreenLoading = loading;
+    },
+    splitscreen: (state, config) => {
+      state.splitscreen = config;
+    },
     showUsermenu: (state, show) => {
       state.showUsermenu = show;
     },