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() {
|
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 }>();
|
||||||
|
@ -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",
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user