Skip to content
Snippets Groups Projects
Commit 3acc649d authored by Dennis Tang's avatar Dennis Tang :art:
Browse files

move state into separate file as per vuex docs

parent f15e331d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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);
 
Loading
Loading
@@ -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: [],
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment