comparison 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
comparison
equal deleted inserted replaced
1229:d395b2940a82 1230:957907eaaa72
21 state: { 21 state: {
22 appTitle: process.env.VUE_APP_TITLE, 22 appTitle: process.env.VUE_APP_TITLE,
23 secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL, 23 secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL,
24 showSidebar: false, 24 showSidebar: false,
25 showUsermenu: false, 25 showUsermenu: false,
26 showBottlenecks: false,
27 showSplitscreen: false, 26 showSplitscreen: false,
28 showSearchbar: false, 27 showSearchbar: false,
29 showSearchbarLastState: false, 28 showSearchbarLastState: false,
30 showIdentify: false, 29 showIdentify: false,
31 showLayers: true, 30 showLayers: true,
32 showPdfTool: false, 31 showPdfTool: false,
33 showImportSoundingResults: false, 32 showInContextBox: null, // bottlenecks, imports, staging
34 showStagingArea: false,
35 countries: ["AT", "SK", "HU", "HR", "RS", "BiH", "BG", "RO", "UA"], 33 countries: ["AT", "SK", "HU", "HR", "RS", "BiH", "BG", "RO", "UA"],
36 searchQuery: "", 34 searchQuery: "",
37 version 35 version
38 }, 36 },
39 getters: { 37 getters: {
55 }, 53 },
56 mutations: { 54 mutations: {
57 showSidebar: (state, show) => { 55 showSidebar: (state, show) => {
58 state.showSidebar = show; 56 state.showSidebar = show;
59 }, 57 },
60 showBottlenecks: (state, show) => {
61 state.showBottlenecks = show;
62 if (show) {
63 state.showSearchbarLastState = state.showSearchbar;
64 }
65 },
66 showSplitscreen: (state, show) => { 58 showSplitscreen: (state, show) => {
67 state.showSplitscreen = show; 59 state.showSplitscreen = show;
68 }, 60 },
69 showUsermenu: (state, show) => { 61 showUsermenu: (state, show) => {
70 state.showUsermenu = show; 62 state.showUsermenu = show;
79 state.showLayers = show; 71 state.showLayers = show;
80 }, 72 },
81 showPdfTool: (state, show) => { 73 showPdfTool: (state, show) => {
82 state.showPdfTool = show; 74 state.showPdfTool = show;
83 }, 75 },
84 showImportSoundingResults: (state, show) => { 76 showInContextBox: (state, context) => {
85 state.showImportSoundingResults = show; 77 state.showInContextBox = context;
86 }, 78 if (context) {
87 showStagingArea: (state, show) => { 79 state.showSearchbarLastState = state.showSearchbar;
88 state.showStagingArea = show; 80 }
89 }, 81 },
90 searchQuery: (state, searchQuery) => { 82 searchQuery: (state, searchQuery) => {
91 state.searchQuery = searchQuery; 83 state.searchQuery = searchQuery;
92 } 84 }
93 } 85 }