DeletionConfirmationDialog.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <LazyLayoutDialog :show="modelValue">
  3. <template #dialogType>
  4. {{ $t('delete_assistant') }}
  5. </template>
  6. <template #dialogTitle>
  7. {{ $t('caution') }}
  8. </template>
  9. <template #dialogText>
  10. <v-card-text>
  11. <p>{{ $t('confirm_to_delete') }}</p>
  12. </v-card-text>
  13. </template>
  14. <template #dialogBtn>
  15. <v-btn class="mr-4 submitBtn theme-neutral-strong" @click="onCancelClicked">
  16. {{ $t('cancel') }}
  17. </v-btn>
  18. <v-btn class="mr-4 submitBtn theme-danger" @click="onDeleteClicked">
  19. {{ $t('delete') }}
  20. </v-btn>
  21. </template>
  22. </LazyLayoutDialog>
  23. </template>
  24. <script setup lang="ts">
  25. const props = defineProps({
  26. modelValue: {
  27. type: Boolean
  28. }
  29. })
  30. const emit = defineEmits(['cancelClicked', 'deleteClicked', 'update:modelValue'])
  31. const onCancelClicked = () => {
  32. emit('cancelClicked')
  33. emit('update:modelValue', false)
  34. }
  35. const onDeleteClicked = () => {
  36. emit('deleteClicked')
  37. emit('update:modelValue', false)
  38. }
  39. </script>
  40. <style scoped lang="scss">
  41. </style>