feat(ui): show user name
This commit is contained in:
parent
b853ceb0cb
commit
01d38786ec
2 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,8 @@ export function initState(): ICoreState {
|
||||||
paneNames: Set<string>(["settings", "login", "admin"]),
|
paneNames: Set<string>(["settings", "login", "admin"]),
|
||||||
},
|
},
|
||||||
login: {
|
login: {
|
||||||
|
userID: "",
|
||||||
|
userName: "",
|
||||||
userRole: "",
|
userRole: "",
|
||||||
authed: false,
|
authed: false,
|
||||||
captchaID: "",
|
captchaID: "",
|
||||||
|
|
|
@ -5,6 +5,8 @@ import { updater } from "./state_updater";
|
||||||
import { alertMsg } from "../common/env";
|
import { alertMsg } from "../common/env";
|
||||||
|
|
||||||
export interface LoginProps {
|
export interface LoginProps {
|
||||||
|
userID: string;
|
||||||
|
userName: string;
|
||||||
userRole: string;
|
userRole: string;
|
||||||
authed: boolean;
|
authed: boolean;
|
||||||
captchaID: string;
|
captchaID: string;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue