From ad0ff0ed565b148a0bf793bf87aa38153349ff45 Mon Sep 17 00:00:00 2001 From: Willow C Reed Date: Mon, 6 Jul 2026 15:24:25 -0600 Subject: [PATCH] fix confirm dialogs --- .../src/lib/components/confirm-dialog.svelte | 105 ++++++++---------- .../ui/dialog/dialog-content.svelte | 4 +- 2 files changed, 50 insertions(+), 59 deletions(-) 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(); - +