debian-mirror-gitlab/app/assets/javascripts/vuex_shared/modules/modal/mutations.js

19 lines
347 B
JavaScript
Raw Normal View History

2019-02-13 22:33:31 +05:30
import * as types from './mutation_types';
export default {
[types.SHOW](state) {
state.isVisible = true;
},
[types.HIDE](state) {
state.isVisible = false;
},
[types.OPEN](state, data) {
state.data = data;
state.isVisible = true;
},
[types.CLOSE](state) {
state.data = null;
state.isVisible = false;
},
};