-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GDB-11134 fix issues in users and settings view when in cluster mode (#…
…1649) * GDB-11134 fix issues in users and settings view when in cluster mode ## What * Activating free access mode in a cluster in secondary mode results in incorrect state of the checkbox in the ui. ## Why * When trying to activate free access in a node from secondary cluster group, there is 412 error response from the backend which is not properly handled in the UI which results in incorrect state of the checkbox. ## How * Fixed two thing here. First: properly handle the error state to prevent an error in result of incorrect extraction of the error message from the backend response. Second: moved the initialization of the `freeAccess` property in the jwt-auth.service.js to happen after the success response and not before. * ## What * Trying to disable the security while in cluster secondary mode (which is not strictly needed, but the operation fails in this case too) results in weird page reload without change in the checkbox status after that. ## Why * This happens because the reload was actually triggered after each click on the toggle security checkbox, regardless if actually there was a change in the state after the operation. ## How * Fixed by storing a local variable for the security mode before invoking the backend and changed the condition to reload the view only if there was an actual change in the state.
- Loading branch information
1 parent
42cd55a
commit cd1f125
Showing
2 changed files
with
64 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters