SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/digitize/components/collectingEvent/mixins/extendCE.js

Summary

Maintainability
A
0 mins
Test Coverage
import { GetterNames } from '../../../store/getters/getters'
import { MutationNames } from '../../../store/mutations/mutations'
import { ActionNames } from '../../../store/actions/actions'

export default {
  computed: {
    collectingEvent: {
      get() {
        return this.$store.getters[GetterNames.GetCollectingEvent]
      },
      set(value) {
        this.$store.commit(MutationNames.SetCollectingEvent, value)
      }
    }
  },
  methods: {
    updateChange() {
      this.$store.dispatch(ActionNames.UpdateCEChange)
    }
  }
}