ObservationDatabase/frontend/src/store.js

29 lines
515 B
JavaScript
Raw Normal View History

2018-09-15 12:23:21 +01:00
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
state: {
site: null,
tutors: [],
description: null,
type: null
},
mutations: {
setSite(state, newSite) {
state.site = newSite;
},
setTutors(state, newTutors) {
state.tutors = newTutors;
},
setDescription(state, newDescription) {
state.description = newDescription;
},
setType(state, newType){
state.type = newType;
}
},
2018-09-15 12:23:21 +01:00
actions: {}
});