Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public handleDeleteUser(user: Named): Observable<void> {
  2. return this.showConfirmUserDeleteComponent(user)
  3. .afterConfirm()
  4. .pipe(
  5. switchMap(
  6. () =>
  7. this.deleteTest(user),
  8. // this.userManagementService.deleteProjectUser(this.projectId, user.name).pipe(
  9.  
  10. )
  11. ),
  12. );
  13. }
  14.  
  15. public deleteTest(user: Named): void {
  16. this.userManagementService.deleteProjectUser(this.projectId, user.name).subscribe(
  17. () => {
  18. this.memberToasterService.userDeleted(user);
  19. this.fetchUsers();
  20. },
  21. (err: HttpErrorResponse) => {
  22. this.showDeleteUserErrorToaster(err);
  23. },
  24. );
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement