view client/src/stores/application.js @ 515:ef7f56d326ae

fix: gemma configuration added to .hgignore In order to prevent accidentally committing gemma.toml it was added to .hgignore
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 27 Aug 2018 11:56:43 +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;