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.

30 lines
556 B

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