Mercurial > gemma
annotate src/stores/application.js @ 10:361ae8211991 vue-cli
refactored to component local state
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 18 Jun 2018 12:11:35 +0200 |
parents | ee6d3836014e |
children |
rev | line source |
---|---|
3 | 1 const Application = { |
2 namespaced: true, | |
3 state: { | |
6 | 4 appTitle: process.env.VUE_APP_TITLE, |
10
361ae8211991
refactored to component local state
Thomas Junk <thomas.junk@intevation.de>
parents:
9
diff
changeset
|
5 secondaryLogo: process.env.VUE_APP_SECONDARY_LOGO_URL |
3 | 6 }, |
7 getters: { | |
8 appTitle: state => { | |
9 return state.appTitle; | |
6 | 10 }, |
9
ee6d3836014e
current version of login
Thomas Junk <thomas.junk@intevation.de>
parents:
6
diff
changeset
|
11 secondaryLogo: state => { |
ee6d3836014e
current version of login
Thomas Junk <thomas.junk@intevation.de>
parents:
6
diff
changeset
|
12 return state.secondaryLogo; |
3 | 13 } |
14 }, | |
10
361ae8211991
refactored to component local state
Thomas Junk <thomas.junk@intevation.de>
parents:
9
diff
changeset
|
15 mutations: {}, |
3 | 16 actions: {} |
17 }; | |
18 | |
19 export default Application; |