Fixed initials avatar
This commit is contained in:
parent
c4a84a4a4d
commit
16fb6e3d9d
@ -35,9 +35,10 @@ export class InitialsAvatarComponent implements OnInit, OnChanges {
|
||||
} else {
|
||||
this.user = this._userService.getUserById(this.userId);
|
||||
}
|
||||
this.displayName =
|
||||
this._userService.getName(this.user) +
|
||||
(this.showYou && this._userService.userId === this.userId ? ` (${this._translateService.instant('initials-avatar.you')})` : '');
|
||||
this.displayName = this._userService.getName(this.user);
|
||||
if (this.showYou && this._userService.userId === this.userId) {
|
||||
this.displayName += ` (${this._translateService.instant('initials-avatar.you')})`;
|
||||
}
|
||||
this.initials = this._getInitials();
|
||||
this.colorClass = this._colorClass;
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user