Missed a couple of things to push

This commit is contained in:
Opaque02 2024-10-14 11:19:17 +10:00
parent 5f0fc22085
commit 4999b34de2
2 changed files with 4 additions and 4 deletions

View File

@ -76,7 +76,7 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
} }
override getFields(_config?: ModalConfig): string[] { override getFields(_config?: ModalConfig): string[] {
return [i18next.t("menu:username"), i18next.t("menu:password")]; return [ i18next.t("menu:username"), i18next.t("menu:password") ];
} }
override getWidth(_config?: ModalConfig): number { override getWidth(_config?: ModalConfig): number {
@ -84,11 +84,11 @@ export default class LoginFormUiHandler extends FormModalUiHandler {
} }
override getMargin(_config?: ModalConfig): [number, number, number, number] { override getMargin(_config?: ModalConfig): [number, number, number, number] {
return [0, 0, 48, 0]; return [ 0, 0, 48, 0 ];
} }
override getButtonLabels(_config?: ModalConfig): string[] { override getButtonLabels(_config?: ModalConfig): string[] {
return [i18next.t("menu:login"), i18next.t("menu:register")]; return [ i18next.t("menu:login"), i18next.t("menu:register") ];
} }
override getReadableErrorMessage(error: string): string { override getReadableErrorMessage(error: string): string {

View File

@ -389,7 +389,7 @@ export default class MenuUiHandler extends MessageUiHandler {
label: "Admin", label: "Admin",
handler: () => { handler: () => {
const skippedAdminModes: AdminMode[] = [AdminMode.ADMIN]; // this is here so that we can skip the menu populating enums that aren't meant for the menu, such as the AdminMode.ADMIN const skippedAdminModes: AdminMode[] = [ AdminMode.ADMIN ]; // this is here so that we can skip the menu populating enums that aren't meant for the menu, such as the AdminMode.ADMIN
const options: OptionSelectItem[] = []; const options: OptionSelectItem[] = [];
Object.values(AdminMode).filter((v) => !isNaN(Number(v)) && !skippedAdminModes.includes(v as AdminMode)).forEach((mode) => { // this gets all the enums in a way we can use Object.values(AdminMode).filter((v) => !isNaN(Number(v)) && !skippedAdminModes.includes(v as AdminMode)).forEach((mode) => { // this gets all the enums in a way we can use
options.push({ options.push({