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.

32 lines
573 B

  1. <template>
  2. <confirm-form
  3. :items="selected"
  4. :title="$t('dataset.deleteDocumentsTitle')"
  5. :message="$t('dataset.deleteDocumentsMessage')"
  6. :item-key="itemKey"
  7. @ok="$emit('remove')"
  8. @cancel="$emit('cancel')"
  9. />
  10. </template>
  11. <script lang="ts">
  12. import Vue from 'vue'
  13. import ConfirmForm from '@/components/utils/ConfirmForm.vue'
  14. export default Vue.extend({
  15. components: {
  16. ConfirmForm
  17. },
  18. props: {
  19. selected: {
  20. type: Array,
  21. default: () => []
  22. },
  23. itemKey: {
  24. type: String,
  25. default: 'text'
  26. }
  27. }
  28. })
  29. </script>