Commit 3acc649d authored by Dennis Tang's avatar Dennis Tang

move state into separate file as per vuex docs

parent f15e331d
......@@ -3,6 +3,7 @@ import Vuex from 'vuex';
import * as actions from './actions';
import * as getters from './getters';
import mutations from './mutations';
import state from './state';
Vue.use(Vuex);
......@@ -10,15 +11,5 @@ export default new Vuex.Store({
actions,
getters,
mutations,
state: {
selectedProject: {
projectId: '',
name: '',
},
selectedZone: '',
selectedMachineType: '',
projects: [],
zones: [],
machineTypes: [],
},
state,
});
export default {
selectedProject: {
projectId: '',
name: '',
},
selectedZone: '',
selectedMachineType: '',
projects: [],
zones: [],
machineTypes: [],
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment