fix:add NotificationManager and enable in layout

This commit is contained in:
2025-11-08 13:12:16 +01:00
parent df675640c2
commit d7f803c782
2 changed files with 153 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
import { Toaster } from '$lib/components/sonner/index.js';
import { Skeleton } from '$lib/components/skeleton';
import LocationManager from '$lib/components/LocationManager.svelte';
import NotificationManager from '$lib/components/NotificationManager.svelte';
import { onMount } from 'svelte';
import { browser } from '$app/environment';
@@ -42,9 +43,10 @@
<Toaster />
<!-- Auto-start location watching for authenticated users -->
<!-- Auto-start location and notfication watching for authenticated users -->
{#if data?.user && !isLoginRoute}
<LocationManager autoStart={true} />
<NotificationManager />
{/if}
{#if showHeader && data.user}