Configure dashboard menu on globalvar configuration

This commit is contained in:
Dita Aji Pratama 2024-09-26 09:37:35 +07:00
parent b90aae6862
commit 93e2693db4

View File

@ -86,5 +86,56 @@ menu = {
"roles":[1,2,3] "roles":[1,2,3]
} }
] ]
},
"dashboard": {
"navbar": [
{
"name":"Home",
"target":"_self",
"href":"/",
"notification":0,
"roles":[0,1,2,3]
}
],
"profile": [
{
"name" :"Profile",
"href" :"/dashboard/profile",
"target":"_self",
"roles":[1,2]
},
{
"name" :"Settings",
"href" :"/dashboard/settings",
"target":"_self",
"roles":[1,2]
},
{
"name" :"Logout",
"href" :"/logout",
"target":"_self",
"roles":[1,2,3]
}
],
"sidebar": [
{
"name":"Dashboard",
"target":"_self",
"href":"/dashboard",
"roles":[1,2]
},
{
"name":"Roles",
"target":"_self",
"href":"/dashboard/roles",
"roles":[1]
},
{
"name":"Users",
"target":"_self",
"href":"/dashboard/users",
"roles":[1,2]
}
]
} }
} }