From 7c5b703e373b6c8a5480304f080f54678d109d00 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Mon, 22 Jul 2024 09:06:11 +0000 Subject: [PATCH] web/dialog: refactor types and logic --- web/src/components/dialog/DialogHolder.svelte | 4 +--- .../save/buttons/DownloadButton.svelte | 8 ++++---- web/src/lib/types/dialog.ts | 17 +++++++++++++---- 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/web/src/components/dialog/DialogHolder.svelte b/web/src/components/dialog/DialogHolder.svelte index 61503fcd..a77607c3 100644 --- a/web/src/components/dialog/DialogHolder.svelte +++ b/web/src/components/dialog/DialogHolder.svelte @@ -19,9 +19,7 @@ bodySubText={dialog.bodySubText} buttons={dialog.buttons} /> - {/if} - - {#if dialog.type === "picker"} + {:else if dialog.type === "picker"}