Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hiding a link in LayoutNavigationTree #1073

Open
RatikantHM opened this issue Feb 17, 2021 · 0 comments
Open

Allow hiding a link in LayoutNavigationTree #1073

RatikantHM opened this issue Feb 17, 2021 · 0 comments
Milestone

Comments

@RatikantHM
Copy link

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!

@mlaursen mlaursen added this to the v.Unknown milestone Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants