Mercurial > gemma
view client/src/stores/application.js @ 514:4a1db55a9920
Use auth.RunAs in JSON controller.
It's more symmetric to the rest of the application and
returns the database connection earlier to the pool.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 27 Aug 2018 10:35:55 +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;