diff --git a/src/routes/app-menu/tabs/your-dolls/doll-editor-window.svelte b/src/routes/app-menu/tabs/your-dolls/doll-editor-window.svelte index abe7e85..68f3e89 100644 --- a/src/routes/app-menu/tabs/your-dolls/doll-editor-window.svelte +++ b/src/routes/app-menu/tabs/your-dolls/doll-editor-window.svelte @@ -11,6 +11,7 @@ let dollId: string | null = null; let loading = true; let error: string | null = null; + let saving = false; let name = ""; let bodyColor = "#FFFFFF"; @@ -49,6 +50,7 @@ async function handleSave() { if (!name.trim()) return; + saving = true; try { if (mode === "create") { const dto: CreateDollDto = { @@ -79,6 +81,8 @@ } catch (e) { error = (e as Error)?.message ?? String(e); console.error("Failed to save doll:", e); + } finally { + saving = false; } } @@ -110,6 +114,7 @@ placeholder="Doll Name" class="input input-bordered w-full" bind:value={name} + disabled={saving} />