Account manager should remain unambiguous when currently active user logs out. #139
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
KittenSquad/glewlwyd!139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "account-selector-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Clicking on the Log Out button of the currently active user renders the radio control ambiguous, giving the false impression that no user is active.
This PR addresses the issue by executing the account change as soon as the radio option is changed. The "Select" button is thus no longer necessary and is replaced with a "Back" button.
If the currently active user is logged out, the first user on the list is automatically selected and the radio remains unambiguous.
In any case, a notification is used to confirm that the active account was indeed switched (or otherwise display an error).
Nice job @yrammos , with the few requested changes, it will be good!
Better use
"Retour"in French@ -28,18 +28,20 @@ class SelectAccount extends Component {});}I like the new behavior, more simple and intuitive, but since the
Selectbutton has been replaced by aBackbutton, this handle should be renamedhandleBack.You don't need to use backquotes to surround the message, instead, add a new i18n entry:
And the new i18n entry in the json locale files should be like:
Thank you for the review, @babelouest. Done.
@yrammos , I merged your PR in my master. I took the liberty afterwards to make another change, there was a
handleToggleGrantScopecall in therender()which was not necessary, I also removed thecheckedattribute in the hidden checkbox, it's was worthless.Thanks!