From 59f55608022f583847c570bfa3cf31109d44904d Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 27 Jul 2024 15:30:00 +0600 Subject: [PATCH] web/dialogs: move backdrop close handler to container --- web/src/components/dialog/DialogContainer.svelte | 3 +++ web/src/components/dialog/PickerDialog.svelte | 3 --- web/src/components/dialog/SavingDialog.svelte | 3 --- web/src/components/dialog/SmallDialog.svelte | 3 --- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/web/src/components/dialog/DialogContainer.svelte b/web/src/components/dialog/DialogContainer.svelte index 0827bc19..3bb682e6 100644 --- a/web/src/components/dialog/DialogContainer.svelte +++ b/web/src/components/dialog/DialogContainer.svelte @@ -2,6 +2,8 @@ import { tick } from "svelte"; import { killDialog } from "$lib/dialogs"; + import DialogBackdropClose from "$components/dialog/DialogBackdropClose.svelte"; + export let id: string; let dialogParent: HTMLDialogElement; @@ -30,4 +32,5 @@ + diff --git a/web/src/components/dialog/PickerDialog.svelte b/web/src/components/dialog/PickerDialog.svelte index ce7b55f5..0f75f989 100644 --- a/web/src/components/dialog/PickerDialog.svelte +++ b/web/src/components/dialog/PickerDialog.svelte @@ -10,7 +10,6 @@ import PickerItem from "$components/dialog/PickerItem.svelte"; import DialogButtons from "$components/dialog/DialogButtons.svelte"; - import DialogBackdropClose from "$components/dialog/DialogBackdropClose.svelte"; import IconBoxMultiple from "@tabler/icons-svelte/IconBoxMultiple.svelte"; @@ -58,8 +57,6 @@ {/if} - -