devtron icon indicating copy to clipboard operation
devtron copied to clipboard

Global config > Git account enable/disable switch doesn't work if git account is expanded.

Open uxarya-d opened this issue 3 years ago • 0 comments

Checklist:

  • [x] I've searched in the docs and FAQ for my answer
  • [x] I've included steps to reproduce the bug.

Describe the bug

In global configuration, git account enable/disable switch doesn't work when git account is expanded.

Screenshot 2022-02-10 at 6.16.03 PM.png

To Reproduce

  1. Navigate to Global Configuration > Git Accounts
  2. Expand any saved git account
  3. Toggle the switch to enable/disable the git account.
  4. Reload page

Expected behavior

Upon clicking on the toggle switch:

  1. Enabled/Disabled state should be applied/saved
  2. A toast should be shown, based on the action(enable/disable) performed. Git account enabled OR Git account disabled

Current behavior

The switch moves to enabled/disabled state but the change is not applied. Refreshing the page after toggling the switch shows the previously saved state.

AB#431

uxarya-d avatar Feb 10 '22 12:02 uxarya-d