diff --git a/src/components/ui/VnConfirm.vue b/src/components/ui/VnConfirm.vue
index 0480650db..fd4860107 100644
--- a/src/components/ui/VnConfirm.vue
+++ b/src/components/ui/VnConfirm.vue
@@ -15,7 +15,7 @@ const props = defineProps({
default: null,
},
message: {
- type: String,
+ type: [String, Boolean],
default: null,
},
data: {
@@ -35,7 +35,10 @@ defineEmits(['confirm', ...useDialogPluginComponent.emits]);
const { dialogRef, onDialogOK } = useDialogPluginComponent();
const title = props.title || t('Confirm');
-const message = props.message || t('Are you sure you want to continue?');
+const message =
+ props.message ||
+ (props.message !== false ? t('Are you sure you want to continue?') : false);
+
const isLoading = ref(false);
async function confirm() {
@@ -61,12 +64,12 @@ async function confirm() {
size="xl"
v-if="icon"
/>
- {{ title }}
+ {{ title }}
-
+
diff --git a/src/pages/Ticket/Card/TicketSaleMoreActions.vue b/src/pages/Ticket/Card/TicketSaleMoreActions.vue
index f04a13c4e..94db67be2 100644
--- a/src/pages/Ticket/Card/TicketSaleMoreActions.vue
+++ b/src/pages/Ticket/Card/TicketSaleMoreActions.vue
@@ -131,7 +131,11 @@ const createClaim = () => {
onCreateClaimAccepted
);
else
- openConfirmationModal(t('Do you want to create a claim?'), onCreateClaimAccepted);
+ openConfirmationModal(
+ t('Do you want to create a claim?'),
+ false,
+ onCreateClaimAccepted
+ );
};
const onCreateClaimAccepted = async () => {