hardlounge/client/js/store.js

24 lines
404 B
JavaScript
Raw Normal View History

import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex);
export default new Vuex.Store({
2019-02-27 14:15:34 +00:00
state: {
isConnected: false,
isNotified: false,
2019-02-27 18:15:58 +00:00
activeWindow: null,
2019-02-27 14:15:34 +00:00
},
mutations: {
isConnected(state, payload) {
state.isConnected = payload;
},
isNotified(state, payload) {
state.isNotified = payload;
},
2019-02-27 18:15:58 +00:00
activeWindow(state, payload) {
state.activeWindow = payload;
},
2019-02-27 14:15:34 +00:00
}
});