-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ObsUX] Enable Hosts advanced setting on serverless #170035
[ObsUX] Enable Hosts advanced setting on serverless #170035
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/infra-monitoring-ui (Team:Infra Monitoring UI) |
return pathNameSerialized.startsWith(prepend('/app/metrics/hosts')); | ||
{ | ||
link: 'metrics:hosts', | ||
sideNavStatus: settings.hasInfrastructureHosts ? 'visible' : 'hidden', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if you have tried it, but I think it might be simpler if we'd keep this static, but hide/show the link by updating the metrics:hosts
navLinkStatus
in core:
kibana/x-pack/plugins/infra/public/plugin.ts
Line 270 in 9a8277e
navLinkStatus: AppNavLinkStatus.visible, |
The serverless side nav should hide the link from side nav based on that visibility.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you're right, thank you!. And it actually already works because of this, not sure how I missed this 🙈
Reverted the changes in the sidenav component as they turned out to be redundant based on the comment from @Dosant 🙌 |
💚 Build Succeeded
Metrics [docs]
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #169198
Summary
CleanShot.2023-10-27.at.16.09.14.mp4
How to test