antares/src/renderer/store/modules/connections.store.js

28 lines
526 B
JavaScript

'use strict';
export default {
namespaced: true,
strict: true,
state: {
connections: [],
isNewConnModal: false
},
mutations: {
showNewConnModal (state) {
state.isNewConnModal = true;
},
hideNewConnModal (state) {
state.isNewConnModal = false;
}
},
actions: {
// Modals
showNewConnModal ({ commit }) {
commit('showNewConnModal');
},
hideNewConnModal ({ commit }) {
commit('hideNewConnModal');
}
}
};