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

28 lines
526 B
JavaScript
Raw Normal View History

2020-05-08 18:02:18 +02:00
'use strict';
export default {
namespaced: true,
strict: true,
state: {
connections: [],
isNewConnModal: false
},
mutations: {
showNewConnModal (state) {
state.isNewConnModal = true;
},
hideNewConnModal (state) {
state.isNewConnModal = false;
}
},
actions: {
2020-05-11 18:05:34 +02:00
// Modals
2020-05-08 18:02:18 +02:00
showNewConnModal ({ commit }) {
commit('showNewConnModal');
},
hideNewConnModal ({ commit }) {
commit('hideNewConnModal');
}
}
};