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

21 lines
424 B
JavaScript
Raw Normal View History

2019-02-15 15:39:39 +05:30
import * as types from './mutation_types';
export const open = ({ commit }, data) => {
commit(types.OPEN, data);
};
export const close = ({ commit }) => {
commit(types.CLOSE);
};
export const show = ({ commit }) => {
commit(types.SHOW);
};
export const hide = ({ commit }) => {
commit(types.HIDE);
};
2019-03-02 22:35:43 +05:30
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};