fix menu
This commit is contained in:
parent
f2da041b7c
commit
64298de8bd
@ -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 }>();
|
||||
|
@ -113,6 +113,7 @@ const menu: BaseTranslation = {
|
||||
},
|
||||
sub: {
|
||||
profile: "Profile",
|
||||
worlds: "Worlds",
|
||||
settings: "Settings",
|
||||
invite: "Invite",
|
||||
credit: "Credit",
|
||||
|
@ -113,6 +113,7 @@ const menu: NonNullable<Translation["menu"]> = {
|
||||
},
|
||||
sub: {
|
||||
profile: "Profile",
|
||||
worlds: "Worlds",
|
||||
settings: "Paramètres",
|
||||
invite: "Inviter",
|
||||
credit: "Crédits",
|
||||
|
Loading…
Reference in New Issue
Block a user