diff client/src/stores/application.js @ 542:505656a9947f

refac: layout refactored Introduced Topbar and Hamburger Menu
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 30 Aug 2018 14:39:24 +0200
parents 9869bc03155e
children f66116b3a249
line wrap: on
line diff
--- a/client/src/stores/application.js	Thu Aug 30 12:57:27 2018 +0200
+++ b/client/src/stores/application.js	Thu Aug 30 14:39:24 2018 +0200
@@ -4,7 +4,7 @@
     appTitle: process.env.VUE_APP_TITLE,
     secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL,
     sidebar: {
-      iscollapsed: false
+      iscollapsed: true
     },
     countries: ["AT", "SK", "HU", "HR", "RS", "BiH", "BG", "RO", "UA"]
   },
@@ -23,8 +23,8 @@
     }
   },
   mutations: {
-    toggleSidebar: () => {
-      this.sidebar.iscollapsed = !this.sidebar.iscollapsed;
+    toggleSidebar: state => {
+      state.sidebar.iscollapsed = !state.sidebar.iscollapsed;
     }
   },
   actions: {}