Begin Display, Add View Transitions
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user