StopConfirmation.vue 1.7 KB

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