Begin Display, Add View Transitions

This commit is contained in:
2024-02-28 17:28:21 +01:00
parent 361d7dae6a
commit 678746c89b
31 changed files with 349 additions and 212 deletions

View File

@@ -21,6 +21,7 @@
import {l} from "@utils/util.ts";
import {t} from "astro-i18n";
import {get} from "svelte/store";
import {navigate} from "astro:transitions/client";
let username: string = "";
let pw: string = "";
@@ -45,7 +46,7 @@
}
tokenStore.set(auth);
window.location.href = l("/dashboard");
navigate(l("/dashboard"));
} catch (e: any) {
pw = "";
error = t("login.error");