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.

42 lines
813 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 ActionMenu from '~/components/utils/ActionMenu.vue'
  13. export default Vue.extend({
  14. components: {
  15. ActionMenu
  16. },
  17. computed: {
  18. items() {
  19. return [
  20. {
  21. title: this.$t('labels.createLabel'),
  22. icon: 'mdi-pencil',
  23. event: 'create'
  24. },
  25. {
  26. title: this.$t('labels.importLabels'),
  27. icon: 'mdi-upload',
  28. event: 'upload'
  29. },
  30. {
  31. title: this.$t('labels.exportLabels'),
  32. icon: 'mdi-download',
  33. event: 'download'
  34. }
  35. ]
  36. }
  37. }
  38. })
  39. </script>