fix: replace $page with new page store

This commit is contained in:
Maxi Quoß
2025-01-30 18:54:55 +01:00
parent 169ecf5773
commit 56e7c230b3

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { page } from '$app/state';
import { PUBLIC_VERSION } from '$env/static/public';
import PageLoading from '$lib/components/PageLoading.svelte';
import LL from '$lib/i18n/i18n-svelte';
@@ -19,7 +19,7 @@
onMount(() => {
if (!$pocketbase.authStore.isSuperuser) {
toast($LL.toasts.no_permission({ url: $page.url.pathname }), {
toast($LL.toasts.no_permission({ url: page.url.pathname }), {
icon: '⛔'
});
goto('/');