[ADF-1945] Profile image has Initials displayed behind it. (#2648)

*  Refactored userInfo component.
*  Added test cases.
This commit is contained in:
siva kumar
2017-11-18 02:30:16 +05:30
committed by Eugenio Romano
parent 8a52d6fed5
commit 15cbd3a316
4 changed files with 81 additions and 11 deletions

View File

@@ -111,4 +111,12 @@ export class UserInfoComponent implements OnInit {
showOnRight() {
return this.namePosition === 'right';
}
hasBpmUserPictureId(): boolean {
return !!this.bpmUser.pictureId;
}
hasEcmUserAvatarId(): boolean {
return !!this.ecmUser.avatarId;
}
}