You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
864 B

  1. <template>
  2. <action-menu
  3. :items="items"
  4. :text="$t('dataset.actions')"
  5. @create="$emit('create')"
  6. @upload="$emit('upload')"
  7. @download="$emit('download')"
  8. />
  9. </template>
  10. <script lang="ts">
  11. import Vue from 'vue'
  12. import { mdiPencil, mdiUpload, mdiDownload } from '@mdi/js'
  13. import ActionMenu from '~/components/utils/ActionMenu.vue'
  14. export default Vue.extend({
  15. components: {
  16. ActionMenu
  17. },
  18. computed: {
  19. items() {
  20. return [
  21. {
  22. title: this.$t('labels.createLabel'),
  23. icon: mdiPencil,
  24. event: 'create'
  25. },
  26. {
  27. title: this.$t('labels.importLabels'),
  28. icon: mdiUpload,
  29. event: 'upload'
  30. },
  31. {
  32. title: this.$t('labels.exportLabels'),
  33. icon: mdiDownload,
  34. event: 'download'
  35. }
  36. ]
  37. }
  38. }
  39. })
  40. </script>