2019-01-02 18:34:19 +00:00
|
|
|
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-01-15 18:01:36 +00:00
|
|
|
|
|
|
|
// prevent babel-plugin-rewire from generating an invalid default during karma tests
|
|
|
|
export default () => {};
|