BerniWittmann/cape-frontend

View on GitHub
src/vuex/modules/injectionMapping/actions.js

Summary

Maintainability
A
0 mins
Test Coverage
/* ============
 * Actions for the injectionMapping module
 * ============
 *
 * The actions that are available on the
 * injectionMapping module.
 */

import * as types from './mutation-types'

export const store = ({ commit }, payload) => {
  commit(types.STORE, payload)
}

export const update = ({ commit }, payload) => {
  commit(types.UPDATE, payload)
}

export const remove = ({ commit }, payload) => {
  commit(types.REMOVE, payload)
}

export const add = ({ commit }, payload) => {
  commit(types.ADD, payload)
}

export default {
  store,
  update,
  remove,
  add
}