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 {
roomId: string;
player: string[];
}
}

View File

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

View File

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

View File

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