-
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
[Fleet] Fix hide enrollment key tooltip #123188
[Fleet] Fix hide enrollment key tooltip #123188
Conversation
Pinging @elastic/fleet (Team:Fleet) |
hasActions={true} | ||
noItemsMessage={ | ||
enrollmentAPIKeysRequest.isLoading && enrollmentAPIKeysRequest.isInitialRequest ? ( | ||
(enrollmentAPIKeysRequest.isLoading && enrollmentAPIKeysRequest.isInitialRequest) || | ||
(agentPoliciesRequest.isLoading && agentPoliciesRequest.isInitialRequest) ? ( |
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.
nit: this condition is used twice, could be extracted to a const
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
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @nchaulet |
(cherry picked from commit 8ac8d69)
(cherry picked from commit 8ac8d69)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
(cherry picked from commit 8ac8d69) Co-authored-by: Nicolas Chaulet <[email protected]>
(cherry picked from commit 8ac8d69) Co-authored-by: Nicolas Chaulet <[email protected]>
Hi @nchaulet We have validated this fix on 7.17 BC5 on cloud-qa environment and found it fixed and working fine. Build details:
Thanks |
Summary
Resolve #120874
In the enrollment list page with multiple enrollment tokens when clicking on show enrollment token of multiple tokens we were keeping the "hide token" tooltip for all the previous tokens.
This was due to the fact that we were disabling the button and react is not triggering the blur event to hide the tooltip, that PR fix that by removing the button disablement.
Also fix the loading state to wait for the agent policies too otherwise the UI was blink and showing no enrollment tokens for an instant.
Before
After