thelounge/client/js/store.js

27 lines
492 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 15:15:34 +01:00
state: {
isConnected: false,
isNotified: false,
2019-02-27 19:15:58 +01:00
activeWindow: null,
2019-02-27 15:15:34 +01:00
},
mutations: {
isConnected(state, payload) {
state.isConnected = payload;
},
isNotified(state, payload) {
state.isNotified = payload;
},
2019-02-27 19:15:58 +01:00
activeWindow(state, payload) {
state.activeWindow = payload;
},
currentNetworkConfig(state, payload) {
state.currentNetworkConfig = payload;
},
},
});