Fix agent token modal
What does this MR do and why?
The MR fixes the agent token creation modal. It works as expected if the tokens list already contains tokens, but the agent installation instructions are not shown in case the token is created from the empty state.
Screenshots or screen recordings
Before | After |
---|---|
Screen_Recording_2022-06-20_at_22.32.02 | Screen_Recording_2022-06-20_at_20.19.01 |
How to set up and validate locally
- Create an agent from Infrastructure -> Kubernetes clusters -> Connect a cluster
- Go to the agent's page and select the Access tokens tab.
- Remove the existing token and try to create a new one from the empty state.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Review progress:
Related to #342696
Edited by Anna Vovchenko