You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we have some kind of flag (hidden / render) to hide a link from LayoutNavigationTree list? - there might be a situation where we need to show/hide a link on basis of logged-in user's role.
Hi,
Can we have some kind of flag (hidden / render) to hide a link from LayoutNavigationTree list? - there might be a situation where we need to show/hide a link on basis of logged-in user's role.
const LeftNav: LayoutNavigationTree = { '/': { itemId: '/', parentId: null, children: 'Home', leftAddon: <HomeSVGIcon/>, href: '/' }, '/requirements': { itemId: '/requirements', parentId: null, children: 'Requirements', leftAddon: <RateReviewSVGIcon/>, href: '/requirements', hidden: role === 'ADMIN' }, }
Thanks!
The text was updated successfully, but these errors were encountered: