From c1aba2754dfb6dcff5af98a2613cff87e47f0d36 Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Fri, 5 Jun 2026 19:23:39 +0200 Subject: [PATCH] autosave indicator nits --- .../lib/components/AutosaveIndicator.svelte | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/frontend/src/lib/components/AutosaveIndicator.svelte b/frontend/src/lib/components/AutosaveIndicator.svelte index 7d153c0194..6fd942e464 100644 --- a/frontend/src/lib/components/AutosaveIndicator.svelte +++ b/frontend/src/lib/components/AutosaveIndicator.svelte @@ -53,25 +53,17 @@ }) const label = $derived( - syncState === 'saving' - ? 'Saving' - : syncState === 'pending' - ? 'Unsaved' - : savedVisible - ? 'Saved' - : '' + syncState === 'saving' || syncState === 'pending' ? 'Saving' : savedVisible ? 'Saved' : '' ) -
- {#if label} - {label} - {/if} - {#if syncState === 'saving'} +
+ {#if syncState === 'saving' || syncState === 'pending'} - {:else if syncState === 'pending'} - {:else} {/if} + {#if label} + {label} + {/if}