diff client/src/store/application.js @ 1282:a7dd8a3356fc

fixed contextBox animations
author Markus Kottlaender <markus@intevation.de>
date Thu, 22 Nov 2018 10:20:21 +0100
parents 76bc179c181f
children 99c039e86624
line wrap: on
line diff
--- a/client/src/store/application.js	Thu Nov 22 08:57:38 2018 +0100
+++ b/client/src/store/application.js	Thu Nov 22 10:20:21 2018 +0100
@@ -29,7 +29,8 @@
     showIdentify: false,
     showLayers: true,
     showPdfTool: false,
-    showInContextBox: null, // bottlenecks, imports, staging
+    showContextBox: false,
+    contextBoxContent: null, // bottlenecks, imports, staging
     expandToolbar: false,
     countries: ["AT", "SK", "HU", "HR", "RS", "BiH", "BG", "RO", "UA"],
     searchQuery: "",
@@ -74,8 +75,11 @@
     showPdfTool: (state, show) => {
       state.showPdfTool = show;
     },
-    showInContextBox: (state, context) => {
-      state.showInContextBox = context;
+    showContextBox: (state, show) => {
+      state.showContextBox = show;
+    },
+    contextBoxContent: (state, context) => {
+      state.contextBoxContent = context;
       if (context) {
         state.showSearchbarLastState = state.showSearchbar;
       }