This commit is contained in:
_Bastler 2022-01-25 21:10:02 +01:00
parent f2da041b7c
commit 64298de8bd
4 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
export interface World { export interface World {
roomId: string; roomId: string;
player: string[]; player: string[];
} }

View File

@ -143,6 +143,7 @@ export const contactPageStore = writable<string | undefined>(CONTACT_URL);
export function checkSubMenuToShow() { export function checkSubMenuToShow() {
subMenusStore.removeTranslatedMenu(SubMenusInterface.globalMessages); subMenusStore.removeTranslatedMenu(SubMenusInterface.globalMessages);
subMenusStore.removeTranslatedMenu(SubMenusInterface.contact); subMenusStore.removeTranslatedMenu(SubMenusInterface.contact);
subMenusStore.removeTranslatedMenu(SubMenusInterface.invite);
if (get(userIsAdminStore)) { if (get(userIsAdminStore)) {
subMenusStore.addTranslatedMenu(SubMenusInterface.globalMessages); subMenusStore.addTranslatedMenu(SubMenusInterface.globalMessages);
@ -151,8 +152,6 @@ export function checkSubMenuToShow() {
if (get(contactPageStore) !== undefined) { if (get(contactPageStore) !== undefined) {
subMenusStore.addTranslatedMenu(SubMenusInterface.contact); subMenusStore.addTranslatedMenu(SubMenusInterface.contact);
} }
subMenusStore.removeMenu(SubMenusInterface.invite);
} }
export const customMenuIframe = new Map<string, { url: string; allowApi: boolean }>(); export const customMenuIframe = new Map<string, { url: string; allowApi: boolean }>();

View File

@ -113,6 +113,7 @@ const menu: BaseTranslation = {
}, },
sub: { sub: {
profile: "Profile", profile: "Profile",
worlds: "Worlds",
settings: "Settings", settings: "Settings",
invite: "Invite", invite: "Invite",
credit: "Credit", credit: "Credit",

View File

@ -113,6 +113,7 @@ const menu: NonNullable<Translation["menu"]> = {
}, },
sub: { sub: {
profile: "Profile", profile: "Profile",
worlds: "Worlds",
settings: "Paramètres", settings: "Paramètres",
invite: "Inviter", invite: "Inviter",
credit: "Crédits", credit: "Crédits",