RED-4963 - added new 'active' property to can enable/disable user without losing it's roles
This commit is contained in:
parent
bff991ac62
commit
2698e62e41
@ -10,6 +10,7 @@ export class IqserUser implements IIqserUser, IListable {
|
||||
readonly lastName?: string;
|
||||
readonly name: string;
|
||||
readonly searchKey: string;
|
||||
readonly active?: boolean;
|
||||
|
||||
readonly hasAnyRole = this.roles.length > 0;
|
||||
|
||||
@ -21,6 +22,7 @@ export class IqserUser implements IIqserUser, IListable {
|
||||
this.firstName = user.firstName;
|
||||
this.lastName = user.lastName;
|
||||
this.name = this.firstName && this.lastName ? `${this.firstName} ${this.lastName}` : this.username;
|
||||
this.active = (user as IIqserUser).active;
|
||||
this.searchKey = `${this.name || '-'}${this.username || '-'}${this.email || ''}`;
|
||||
}
|
||||
|
||||
|
||||
@ -7,4 +7,5 @@ export interface IIqserUser {
|
||||
readonly email?: string;
|
||||
readonly firstName?: string;
|
||||
readonly lastName?: string;
|
||||
readonly active?: boolean;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user