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'; ...@@ -3,6 +3,7 @@ import Vuex from 'vuex';
import * as actions from './actions'; import * as actions from './actions';
import * as getters from './getters'; import * as getters from './getters';
import mutations from './mutations'; import mutations from './mutations';
import state from './state';
Vue.use(Vuex); Vue.use(Vuex);
...@@ -10,15 +11,5 @@ export default new Vuex.Store({ ...@@ -10,15 +11,5 @@ export default new Vuex.Store({
actions, actions,
getters, getters,
mutations, mutations,
state: { state,
selectedProject: {
projectId: '',
name: '',
},
selectedZone: '',
selectedMachineType: '',
projects: [],
zones: [],
machineTypes: [],
},
}); });
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