SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/collection_objects/slide_breakdown/store/mutations/mutations.js

Summary

Maintainability
A
3 hrs
Test Coverage
import resetStore from './resetStore'
import setCollectionObject from './setCollectionObject'
import setSledImage from './setSledImage'
import setIdentifier from './setIdentifier'
import setImage from './setImage'
import setNavigation from './setNavigation'
import setDepiction from './setDepiction'
import setStore from './setStore'
import setLocks from './setLocks'

const MutationNames = {
  SetCollectionObject: 'setCollectionObject',
  SetIdentifier: 'setIdentifier',
  SetSledImage: 'setSledImage',
  SetImage: 'setImage',
  SetNavigation: 'setNavigation',
  ResetStore: 'resetStore',
  SetDepiction: 'setDepiction',
  SetStore: 'setStore',
  SetLocks: 'setLocks'
}

const MutationFunctions = {
  [MutationNames.SetCollectionObject]: setCollectionObject,
  [MutationNames.SetIdentifier]: setIdentifier,
  [MutationNames.SetSledImage]: setSledImage,
  [MutationNames.SetImage]: setImage,
  [MutationNames.SetNavigation]: setNavigation,
  [MutationNames.ResetStore]: resetStore,
  [MutationNames.SetDepiction]: setDepiction,
  [MutationNames.SetStore]: setStore,
  [MutationNames.SetLocks]: setLocks
}

export {
  MutationNames,
  MutationFunctions
}