DeletionConfirmationDialog.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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
  16. class="mr-4 submitBtn theme-neutral-strong"
  17. @click="onCancelClicked"
  18. >
  19. {{ $t('cancel') }}
  20. </v-btn>
  21. <v-btn class="mr-4 submitBtn theme-danger" @click="onDeleteClicked">
  22. {{ $t('delete') }}
  23. </v-btn>
  24. </template>
  25. </LazyLayoutDialog>
  26. </template>
  27. <script setup lang="ts">
  28. const props = defineProps({
  29. modelValue: {
  30. type: Boolean,
  31. },
  32. })
  33. const emit = defineEmits([
  34. 'cancelClicked',
  35. 'deleteClicked',
  36. 'update:modelValue',
  37. ])
  38. const onCancelClicked = () => {
  39. emit('cancelClicked')
  40. emit('update:modelValue', false)
  41. }
  42. const onDeleteClicked = () => {
  43. emit('deleteClicked')
  44. emit('update:modelValue', false)
  45. }
  46. </script>
  47. <style scoped lang="scss"></style>