StopConfirmation.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <LazyLayoutDialog :show="show" theme="danger">
  3. <template #dialogType>{{ $t('important') }}</template>
  4. <template #dialogTitle
  5. >{{ $t('you_want_to_stop_your_premium_trial_period') }} ?
  6. </template>
  7. <template #dialogText>
  8. <v-card-text class="text">
  9. <p>
  10. {{ $t('stop_trial_period_warning_1a') }}
  11. {{
  12. $t(
  13. organizationProfile.productBeforeTrial ??
  14. 'stop_trial_missing_version_label',
  15. )
  16. }}, {{ $t('stop_trial_period_warning_1b') }}
  17. </p>
  18. <p>
  19. <strong>{{ $t('stop_trial_period_warning_2') }}</strong>
  20. </p>
  21. <ul>
  22. <li>{{ $t('stop_trial_period_warning_3') }}</li>
  23. <li>{{ $t('stop_trial_period_warning_4') }}</li>
  24. <li>{{ $t('stop_trial_period_warning_5') }}</li>
  25. </ul>
  26. <p>{{ $t('stop_trial_period_warning_6') }}</p>
  27. </v-card-text>
  28. </template>
  29. <template #dialogBtn>
  30. <v-btn class="mr-4 submitBtn theme-neutral-strong" @click="closeDialog">
  31. {{ $t('cancel') }}
  32. </v-btn>
  33. <v-btn class="mr-4 submitBtn theme-danger" @click="stopTrial">
  34. {{ $t('stop_trial') }}
  35. </v-btn>
  36. </template>
  37. </LazyLayoutDialog>
  38. </template>
  39. <script setup lang="ts">
  40. import { useOrganizationProfileStore } from '~/stores/organizationProfile'
  41. defineProps({
  42. show: {
  43. type: Boolean,
  44. required: false,
  45. default: false,
  46. },
  47. })
  48. const organizationProfile = useOrganizationProfileStore()
  49. const emit = defineEmits(['closeDialog', 'stopTrial'])
  50. const closeDialog = () => {
  51. emit('closeDialog')
  52. }
  53. const stopTrial = () => {
  54. emit('stopTrial')
  55. }
  56. </script>
  57. <style scoped lang="scss">
  58. .text {
  59. p {
  60. margin-bottom: 10px;
  61. }
  62. ul {
  63. padding-left: 20px;
  64. margin-bottom: 10px;
  65. }
  66. }
  67. </style>