devtron
devtron copied to clipboard
Global config > Git account enable/disable switch doesn't work if git account is expanded.
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.
To Reproduce
- Navigate to Global Configuration > Git Accounts
- Expand any saved git account
- Toggle the switch to enable/disable the git account.
- Reload page
Expected behavior
Upon clicking on the toggle switch:
- Enabled/Disabled state should be applied/saved
- 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