|
|
|
|
@ -8,8 +8,6 @@
|
|
|
|
|
prompt?: string;
|
|
|
|
|
confirmText?: string;
|
|
|
|
|
confirmColor?: Color;
|
|
|
|
|
cancelText?: string;
|
|
|
|
|
cancelColor?: Color;
|
|
|
|
|
disabled?: boolean;
|
|
|
|
|
size?: 'small' | 'medium';
|
|
|
|
|
onClose: (confirmed: boolean) => void;
|
|
|
|
|
@ -21,8 +19,6 @@
|
|
|
|
|
prompt = $t('are_you_sure_to_do_this'),
|
|
|
|
|
confirmText = $t('confirm'),
|
|
|
|
|
confirmColor = 'danger',
|
|
|
|
|
cancelText = $t('cancel'),
|
|
|
|
|
cancelColor = 'secondary',
|
|
|
|
|
disabled = false,
|
|
|
|
|
size = 'small',
|
|
|
|
|
onClose,
|
|
|
|
|
@ -43,8 +39,8 @@
|
|
|
|
|
|
|
|
|
|
<ModalFooter>
|
|
|
|
|
<div class="flex gap-3 w-full">
|
|
|
|
|
<Button shape="round" color={cancelColor} fullWidth onclick={() => onClose(false)}>
|
|
|
|
|
{cancelText}
|
|
|
|
|
<Button shape="round" color="secondary" fullWidth onclick={() => onClose(false)}>
|
|
|
|
|
{$t('cancel')}
|
|
|
|
|
</Button>
|
|
|
|
|
<Button shape="round" color={confirmColor} fullWidth onclick={handleConfirm} {disabled}>
|
|
|
|
|
{confirmText}
|
|
|
|
|
|