From 4b6f25656b19a665281967419c07c1b0d17a6141 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Tue, 30 Jul 2024 17:34:56 +0200 Subject: [PATCH] Use autocompletion input for names --- src/routes/+page.svelte | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 7e39ba2..a270820 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,8 +1,12 @@
-
{#if form?.field === 'name'} @@ -69,10 +79,10 @@ Fotos auswählen... - {#if files} - {files.length} Bild{#if files.length > 1}er{/if} ausgewählt ({fileSize(files)}) + {#if files && files?.length !== 0} + + {files.length} Bild{#if files.length > 1}er{/if} ausgewählt ({fileSize(files)}) + {:else} Keine Bilder ausgewählt {/if}