SpeciesFileGroup/taxonworks

View on GitHub
app/javascript/vue/tasks/digitize/components/collectingEvent/components/map/depictions.vue

Summary

Maintainability
Test Coverage
<template>
  <depiction-component
    :object-value="collectingEvent"
    object-type="CollectingEvent"
    default-message="Drop images or click here<br> to add collecting event figures"
    action-save="SaveCollectingEvent"
  />
</template>

<script>
import DepictionComponent from '../../../shared/depictions'
import { GetterNames } from '../../../../store/getters/getters.js'

export default {
  components: { DepictionComponent },

  computed: {
    collectingEvent() {
      return this.$store.getters[GetterNames.GetCollectingEvent]
    }
  }
}
</script>

<style scoped>
.vue-dropzone {
  padding: 0px !important;
}
</style>