-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support removing members from a group in the UI
Add a delete icon button to each row of the UI if the current user is allowed to remove that member from the group, and the row is not the current user. The delete action is not available for the current user because handlng this case involves extra logic (different confirmation prompt, user loses access to group settings UI after leaving). When the button is clicked, show a confirmation prompt and then invoke the `DELETE /api/groups/:pubid/members/:userid` API to remove the member from the group.
- Loading branch information
1 parent
d52efda
commit d86e789
Showing
4 changed files
with
213 additions
and
22 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
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