diff client/src/store/application.js @ 1230:957907eaaa72

implemented context sensitive box below search bar (see: issue224)
author Markus Kottlaender <markus@intevation.de>
date Tue, 20 Nov 2018 08:47:53 +0100
parents 8df4ebbc5c3f
children 76bc179c181f
line wrap: on
line diff
--- a/client/src/store/application.js	Tue Nov 20 00:51:33 2018 +0100
+++ b/client/src/store/application.js	Tue Nov 20 08:47:53 2018 +0100
@@ -23,15 +23,13 @@
     secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL,
     showSidebar: false,
     showUsermenu: false,
-    showBottlenecks: false,
     showSplitscreen: false,
     showSearchbar: false,
     showSearchbarLastState: false,
     showIdentify: false,
     showLayers: true,
     showPdfTool: false,
-    showImportSoundingResults: false,
-    showStagingArea: false,
+    showInContextBox: null, // bottlenecks, imports, staging
     countries: ["AT", "SK", "HU", "HR", "RS", "BiH", "BG", "RO", "UA"],
     searchQuery: "",
     version
@@ -57,12 +55,6 @@
     showSidebar: (state, show) => {
       state.showSidebar = show;
     },
-    showBottlenecks: (state, show) => {
-      state.showBottlenecks = show;
-      if (show) {
-        state.showSearchbarLastState = state.showSearchbar;
-      }
-    },
     showSplitscreen: (state, show) => {
       state.showSplitscreen = show;
     },
@@ -81,11 +73,11 @@
     showPdfTool: (state, show) => {
       state.showPdfTool = show;
     },
-    showImportSoundingResults: (state, show) => {
-      state.showImportSoundingResults = show;
-    },
-    showStagingArea: (state, show) => {
-      state.showStagingArea = show;
+    showInContextBox: (state, context) => {
+      state.showInContextBox = context;
+      if (context) {
+        state.showSearchbarLastState = state.showSearchbar;
+      }
     },
     searchQuery: (state, searchQuery) => {
       state.searchQuery = searchQuery;