web/dialogs: add saving method dialog

This commit is contained in:
wukko
2024-07-27 15:07:26 +06:00
parent 7411f358d2
commit a9f9a3e342
7 changed files with 230 additions and 10 deletions

View File

@@ -3,6 +3,7 @@
import SmallDialog from "$components/dialog/SmallDialog.svelte";
import PickerDialog from "$components/dialog/PickerDialog.svelte";
import SavingDialog from "$components/dialog/SavingDialog.svelte";
$: backdropVisible = $dialogs.length > 0;
</script>
@@ -10,10 +11,13 @@
<div id="dialog-holder">
{#each $dialogs as dialog}
{@const { type, ...data } = dialog}
{#if type === "small"}
<SmallDialog {...data} />
{:else if dialog.type === "picker"}
{:else if type === "picker"}
<PickerDialog {...data} />
{:else if type === "saving"}
<SavingDialog {...data} />
{/if}
{/each}
<div id="dialog-backdrop" class:visible={backdropVisible}></div>