hide menus sidebar in polres
This commit is contained in:
parent
397b30aa75
commit
2c7b46bcc3
108
lib/menus.ts
108
lib/menus.ts
|
|
@ -2818,20 +2818,24 @@ export function getMenuList(pathname: string, t: any): Group[] {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
...(!hideForRole3
|
||||||
groupLabel: "",
|
? [
|
||||||
id: "blog",
|
{
|
||||||
menus: [
|
groupLabel: "",
|
||||||
{
|
id: "blog",
|
||||||
id: "blog",
|
menus: [
|
||||||
href: "/contributor/blog",
|
{
|
||||||
label: t("blog"),
|
id: "blog",
|
||||||
active: pathname.includes("/blog"),
|
href: "/contributor/blog",
|
||||||
icon: "fluent:clipboard-text-32-regular",
|
label: t("blog"),
|
||||||
submenus: [],
|
active: pathname.includes("/blog"),
|
||||||
},
|
icon: "fluent:clipboard-text-32-regular",
|
||||||
],
|
submenus: [],
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: []),
|
||||||
{
|
{
|
||||||
groupLabel: "",
|
groupLabel: "",
|
||||||
id: "curatedcontent",
|
id: "curatedcontent",
|
||||||
|
|
@ -2874,42 +2878,46 @@ export function getMenuList(pathname: string, t: any): Group[] {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
...(!hideForRole3
|
||||||
groupLabel: "",
|
? [
|
||||||
id: "settings",
|
{
|
||||||
menus: [
|
groupLabel: "",
|
||||||
{
|
id: "settings",
|
||||||
id: "settings",
|
menus: [
|
||||||
href: "/admin/settings",
|
{
|
||||||
label: t("settings"),
|
id: "settings",
|
||||||
active: pathname.includes("/settinng"),
|
href: "/admin/settings",
|
||||||
icon: "material-symbols:settings",
|
label: t("settings"),
|
||||||
submenus: [
|
active: pathname.includes("/settinng"),
|
||||||
{
|
icon: "material-symbols:settings",
|
||||||
href: "/admin/settings/banner",
|
submenus: [
|
||||||
label: "Banner",
|
{
|
||||||
active: pathname === "/admin/settings/banner",
|
href: "/admin/settings/banner",
|
||||||
icon: "heroicons:arrow-trending-up",
|
label: "Banner",
|
||||||
children: [],
|
active: pathname === "/admin/settings/banner",
|
||||||
},
|
icon: "heroicons:arrow-trending-up",
|
||||||
{
|
children: [],
|
||||||
href: "/admin/settings/popup",
|
},
|
||||||
label: "Pop Up",
|
{
|
||||||
active: pathname === "/admin/settings/popup",
|
href: "/admin/settings/popup",
|
||||||
icon: "heroicons:arrow-trending-up",
|
label: "Pop Up",
|
||||||
children: [],
|
active: pathname === "/admin/settings/popup",
|
||||||
},
|
icon: "heroicons:arrow-trending-up",
|
||||||
{
|
children: [],
|
||||||
href: "/admin/settings/iklan",
|
},
|
||||||
label: "Iklan",
|
{
|
||||||
active: pathname === "/admin/settings/iklan",
|
href: "/admin/settings/iklan",
|
||||||
icon: "heroicons:arrow-trending-up",
|
label: "Iklan",
|
||||||
children: [],
|
active: pathname === "/admin/settings/iklan",
|
||||||
},
|
icon: "heroicons:arrow-trending-up",
|
||||||
],
|
children: [],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: []),
|
||||||
];
|
];
|
||||||
} else if (Number(userParentLevelId) == 761) {
|
} else if (Number(userParentLevelId) == 761) {
|
||||||
menusSelected = [
|
menusSelected = [
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue