summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/vuex_shared/modules/modal/actions.js
blob: 7b209909f695af7cbf9d342c5db4fc6e6dfdf2e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 () => {};