Skip to content

Fix agent token modal

Anna Vovchenko requested to merge anna/fix-agent-token-modal into master

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

  1. Create an agent from Infrastructure -> Kubernetes clusters -> Connect a cluster
  2. Go to the agent's page and select the Access tokens tab.
  3. 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.

Review progress:

Related to #342696

Edited by Anna Vovchenko

Merge request reports