-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
settings: Auto save user group members on blur. #8716
Conversation
Auto saves group members if focus moves from the input field in the pill container.
Add do_not_blur func to not save changes when blur event's origin is one of name/description/pill input from the current user group. Changes in any of name/desc/members are saved together on blur from any of the input field given do_not_blur is false.
Also replaces trash icon with "Delete" for the button.
Clicking the cancel button removes all the changes and the user group returns back to the original state. Saved button is showed once the changes are saved on blur.
Hello @zulip/server-settings members, this pull request was labeled with the area: settings (admin/org) label, so you may want to check it out! |
e641f8c
to
3058fdd
Compare
assert.equal(group_description, 'uranohoshi — Students at Uranohoshi Academy'); | ||
assert.equal(group_name_pills, 'uranohoshi'); | ||
assert.equal(group_name_display, 'uranohoshi'); | ||
assert.equal(group_description, 'Students at Uranohoshi Academy'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Earlier the entire h4 row was being checked. Changing the delete user group button from trash icon to Delete
string resulted in:
assert.equal(group_description, 'uranohoshi — Students at Uranohoshi Academy translated: Delete');
Do let me know if this change needs to be reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems totally fine.
@timabbott @rishig Please review. |
This is excellent work @shubham-padia! Merged. It's rare to see such a large change that I don't have anything to complain about :) |
Fixes #8088.
any input that is not present in the current group, then that change is saved before allowing the user to edit the second group.
Changes saved if any other user group input clicked: