view client/src/stores/application.js @ 485:7a8644e9e50e

client: add (unwired) password reset form * Add password reset form to the Login view. Pressing the forgotton link will blend it in and currently the send button will hide it again. This is a good first place because an additional view and route would be more work with the same functionality. It doe not yet trigger action with the backend. * Put password forgotten part and bottom logo in divs beside the first form which matches the semantics better.
author Bernhard Reiter <bernhard@intevation.de>
date Fri, 24 Aug 2018 12:14:56 +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;