Base
10 months ago
ByPassLinkResetModal.vue
10 months ago
EnableLlmsTxtModal.vue
10 months ago
XmlSecurityModal.vue
10 months ago
XmlSecurityModal.vue
53 lines
| 1 | <script lang="ts" setup> |
| 2 | import Button from "@/components/Button/Button.vue"; |
| 3 | import BaseModal from "@/components/Modals/Base/BaseModal.vue"; |
| 4 | import { useModal } from "@/composables"; |
| 5 | import { translate } from "@/utils/helpers"; |
| 6 | |
| 7 | interface Props { |
| 8 | data: { |
| 9 | onConfirm: () => void; |
| 10 | }; |
| 11 | } |
| 12 | |
| 13 | const props = defineProps<Props>(); |
| 14 | |
| 15 | const { closeModal } = useModal(); |
| 16 | |
| 17 | const onProceed = () => { |
| 18 | if (props.data.onConfirm) props.data.onConfirm(); |
| 19 | |
| 20 | closeModal(); |
| 21 | }; |
| 22 | </script> |
| 23 | |
| 24 | <template> |
| 25 | <BaseModal |
| 26 | :title-icon="{ |
| 27 | name: 'icon-info', |
| 28 | color: 'danger', |
| 29 | }" |
| 30 | :title="translate('xml_security_modal_title')" |
| 31 | > |
| 32 | <p class="h-mb-24 text-gray"> |
| 33 | {{ translate("xml_security_modal_description") }} |
| 34 | </p> |
| 35 | <div class="d-flex justify-content-end"> |
| 36 | <Button |
| 37 | color="danger" |
| 38 | variant="text" |
| 39 | class="h-mr-16" |
| 40 | @click="closeModal" |
| 41 | > |
| 42 | {{ translate("xml_security_modal_cancel") }} |
| 43 | </Button> |
| 44 | <Button |
| 45 | color="danger" |
| 46 | @click="onProceed" |
| 47 | > |
| 48 | {{ translate("xml_security_modal_proceed_anyway") }} |
| 49 | </Button> |
| 50 | </div> |
| 51 | </BaseModal> |
| 52 | </template> |
| 53 |