Mercurial > gemma
view client/src/stores/application.js @ 484:2ac37419f593
Implemented wamos/issue114 (Improve code consistency: For login use json body, disallow GET).
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 24 Aug 2018 11:36:11 +0200 |
parents | 9869bc03155e |
children | 505656a9947f |
line wrap: on
line source
const Application = { namespaced: true, state: { appTitle: process.env.VUE_APP_TITLE, secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL, sidebar: { iscollapsed: false }, countries: ["AT", "SK", "HU", "HR", "RS", "BiH", "BG", "RO", "UA"] }, getters: { countries: state => { return state.countries; }, sidebarCollapsed: state => { return state.sidebar.iscollapsed; }, appTitle: state => { return state.appTitle; }, secondaryLogo: state => { return state.secondaryLogo; } }, mutations: { toggleSidebar: () => { this.sidebar.iscollapsed = !this.sidebar.iscollapsed; } }, actions: {} }; export default Application;