gitlab-org--gitlab-foss/app/assets/javascripts/vuex_shared/modules/modal/actions.js
Paul Slaughter ff1b442801
Export default in vuex_shared/modal/actions
**Why?**
This prevents erros when using actions in karma test.
2019-01-16 09:33:09 -06:00

20 lines
424 B
JavaScript

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);
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};