Mercurial > gemma
comparison client/src/store/index.js @ 2033:431f97fd873b unify_imports
importschedule: extracted to separate store
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 25 Jan 2019 11:09:21 +0100 |
parents | da7ee82ad5d6 |
children | 1686ec185155 |
comparison
equal
deleted
inserted
replaced
2032:15db4fb07af4 | 2033:431f97fd873b |
---|---|
20 import usermanagement from "./usermanagement"; | 20 import usermanagement from "./usermanagement"; |
21 import map from "./map"; | 21 import map from "./map"; |
22 import fairwayprofile from "./fairway"; | 22 import fairwayprofile from "./fairway"; |
23 import bottlenecks from "./bottlenecks"; | 23 import bottlenecks from "./bottlenecks"; |
24 import { imports } from "./imports"; | 24 import { imports } from "./imports"; |
25 import { importschedule } from "./importschedule"; | |
25 | 26 |
26 Vue.use(Vuex); | 27 Vue.use(Vuex); |
27 | 28 |
28 export default new Vuex.Store({ | 29 export default new Vuex.Store({ |
29 mutations: { | 30 mutations: { |
30 reset() { | 31 reset() { |
31 this.replaceState({ | 32 this.replaceState({ |
32 application: application.init(), | 33 application: application.init(), |
33 fairwayprofile: fairwayprofile.init(), | 34 fairwayprofile: fairwayprofile.init(), |
34 imports: imports.init(), | 35 imports: imports.init(), |
36 importschedule: importschedule.init(), | |
35 bottlenecks: bottlenecks.init(), | 37 bottlenecks: bottlenecks.init(), |
36 map: map.init(), | 38 map: map.init(), |
37 user: user.init(), | 39 user: user.init(), |
38 usermanagement: usermanagement.init() | 40 usermanagement: usermanagement.init() |
39 }); | 41 }); |
41 }, | 43 }, |
42 modules: { | 44 modules: { |
43 application, | 45 application, |
44 fairwayprofile, | 46 fairwayprofile, |
45 imports, | 47 imports, |
48 importschedule, | |
46 bottlenecks, | 49 bottlenecks, |
47 map, | 50 map, |
48 user, | 51 user, |
49 usermanagement | 52 usermanagement |
50 } | 53 } |