diff --git a/apps/dashboard/src/lib/components/confirm-dialog.svelte b/apps/dashboard/src/lib/components/confirm-dialog.svelte index 0c631ce..c15366a 100644 --- a/apps/dashboard/src/lib/components/confirm-dialog.svelte +++ b/apps/dashboard/src/lib/components/confirm-dialog.svelte @@ -1,6 +1,7 @@ - + { + if (!value) confirmController.resolve(false); + }} +> + + + {req?.title} + {req?.description} + -{#if confirmController.open} - -
- - -{/if} + {/if} + + + + + + + diff --git a/apps/dashboard/src/lib/components/ui/dialog/dialog-content.svelte b/apps/dashboard/src/lib/components/ui/dialog/dialog-content.svelte index f25561b..22ae981 100644 --- a/apps/dashboard/src/lib/components/ui/dialog/dialog-content.svelte +++ b/apps/dashboard/src/lib/components/ui/dialog/dialog-content.svelte @@ -12,18 +12,20 @@ ref = $bindable(null), class: className, portalProps, + overlayProps, children, showCloseButton = true, ...restProps }: WithoutChildrenOrChild & { portalProps?: WithoutChildrenOrChild>; + overlayProps?: WithoutChildrenOrChild>; children: Snippet; showCloseButton?: boolean; } = $props(); - +