feat(ui): show user name

This commit is contained in:
hexxa 2021-08-26 20:48:26 +08:00 committed by Hexxa
parent b853ceb0cb
commit 01d38786ec
2 changed files with 4 additions and 0 deletions

View file

@ -56,6 +56,8 @@ export function initState(): ICoreState {
paneNames: Set<string>(["settings", "login", "admin"]),
},
login: {
userID: "",
userName: "",
userRole: "",
authed: false,
captchaID: "",

View file

@ -5,6 +5,8 @@ import { updater } from "./state_updater";
import { alertMsg } from "../common/env";
export interface LoginProps {
userID: string;
userName: string;
userRole: string;
authed: boolean;
captchaID: string;