diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index e073f29..0f53903 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -1,10 +1,28 @@
diff --git a/frontend/src/api/client.ts b/frontend/src/api/client.ts
index 960f52a..dcfb648 100644
--- a/frontend/src/api/client.ts
+++ b/frontend/src/api/client.ts
@@ -18,6 +18,11 @@ export function setUnauthorizedHandler(handler: UnauthorizedHandler): void {
onUnauthorized = handler
}
+/** Report an expired or revoked session detected outside of fetch (e.g. WebSocket close). */
+export function notifyUnauthorized(): void {
+ onUnauthorized?.()
+}
+
function readCookie(name: string): string | null {
const match = document.cookie.split('; ').find((c) => c.startsWith(`${name}=`))
return match ? decodeURIComponent(match.slice(name.length + 1)) : null
diff --git a/frontend/src/components/AppHeader.vue b/frontend/src/components/AppHeader.vue
index 248089a..74d90ee 100644
--- a/frontend/src/components/AppHeader.vue
+++ b/frontend/src/components/AppHeader.vue
@@ -2,8 +2,16 @@
import { RouterLink, useRouter } from 'vue-router'
import { useAuthStore } from '@/stores/auth'
+import { useSyncStore } from '@/stores/sync'
const auth = useAuthStore()
+const sync = useSyncStore()
+
+const STATUS_LABELS = {
+ live: 'Live-Sync aktiv',
+ connecting: 'Verbinde …',
+ offline: 'Offline',
+} as const
const router = useRouter()
async function logout(): Promise {
@@ -14,7 +22,16 @@ async function logout(): Promise {