From 71d5a6593a771ad6b2a470a679b1039a05a82d1e Mon Sep 17 00:00:00 2001 From: beo3000 Date: Sat, 21 Feb 2026 11:20:40 +0100 Subject: [PATCH] fix sync --- ka-note/VERSION | 2 +- .../client/src/lib/components/Sidebar.svelte | 34 ++++++++++++------- ka-note/client/src/lib/sync/syncService.ts | 14 ++++++-- 3 files changed, 34 insertions(+), 16 deletions(-) diff --git a/ka-note/VERSION b/ka-note/VERSION index d103273..e5a1f48 100644 --- a/ka-note/VERSION +++ b/ka-note/VERSION @@ -1 +1 @@ -1.0.6 \ No newline at end of file +1.0.7 \ No newline at end of file diff --git a/ka-note/client/src/lib/components/Sidebar.svelte b/ka-note/client/src/lib/components/Sidebar.svelte index 343c070..0c76216 100644 --- a/ka-note/client/src/lib/components/Sidebar.svelte +++ b/ka-note/client/src/lib/components/Sidebar.svelte @@ -9,7 +9,7 @@ import { newId } from '$lib/db/helpers'; import type { AgendaContext, ContextType } from '@ka-note/shared'; import { account, logout } from '$lib/auth/authStore.js'; - import { syncStatus, lastSyncAt } from '$lib/sync/syncService'; + import { syncStatus, lastSyncAt, fullSync } from '$lib/sync/syncService'; const isDev = import.meta.env.DEV; let appVersion = $state('…'); @@ -285,17 +285,27 @@ {/if}
-
- {#if $syncStatus === 'syncing'} - - - - Syncing… - {:else if $syncStatus === 'error'} - ✗ Sync error - {:else if $lastSyncAt} - ✓ {$lastSyncAt.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })} - {/if} +
+
+ {#if $syncStatus === 'syncing'} + + + + Syncing… + {:else if $syncStatus === 'error'} + ✗ Sync error + {:else if $lastSyncAt} + ✓ {$lastSyncAt.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })} + {:else} + Not synced + {/if} +
+