fix toggle user active
This commit is contained in:
parent
cbfd49ea7c
commit
2c4733a4e8
@ -79,7 +79,7 @@ export class UserListingScreenComponent extends BaseListingComponent<User> imple
|
||||
async toggleActive(user: User) {
|
||||
this._loadingService.start();
|
||||
user.roles = this.userService.isActive(user) ? [] : ['RED_USER'];
|
||||
await this._userControllerService.addRoleToUsers(user.roles, user.userId).toPromise();
|
||||
await this._userControllerService.updateProfile(user, user.userId).toPromise();
|
||||
await this._loadData();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user