From: Sudarshan Kumar Date: Thu, 2 Apr 2020 18:32:01 +0000 (+0530) Subject: Fixed Userbar broken user image X-Git-Tag: 3.4.0~122^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=cd9d1cccb4a9c1179365fe6efe26946063ba4c22;hp=552f2d06e9a61bb3d93989cb9faef02d1ba15512;p=portal.git Fixed Userbar broken user image Fixed Userbar broken user image Issue-ID: PORTAL-872 Change-Id: I62863118e5880c2789acce6416d0ea618fc0857a Signed-off-by: Sudarshan Kumar --- diff --git a/portal-FE-common/src/app/layout/components/userbar/userbar.component.html b/portal-FE-common/src/app/layout/components/userbar/userbar.component.html index 0ff5a554..898a8fb4 100644 --- a/portal-FE-common/src/app/layout/components/userbar/userbar.component.html +++ b/portal-FE-common/src/app/layout/components/userbar/userbar.component.html @@ -45,7 +45,10 @@ \ No newline at end of file diff --git a/portal-FE-common/src/app/layout/components/userbar/userbar.component.scss b/portal-FE-common/src/app/layout/components/userbar/userbar.component.scss index 81801104..451adfc7 100644 --- a/portal-FE-common/src/app/layout/components/userbar/userbar.component.scss +++ b/portal-FE-common/src/app/layout/components/userbar/userbar.component.scss @@ -112,3 +112,9 @@ button { width: 55px; border-radius: 50%; } + +.default-user-icon{ + font-size: 45px; + display: block; + color: black; +} \ No newline at end of file diff --git a/portal-FE-common/src/app/layout/components/userbar/userbar.component.ts b/portal-FE-common/src/app/layout/components/userbar/userbar.component.ts index 661317bf..2136abb2 100644 --- a/portal-FE-common/src/app/layout/components/userbar/userbar.component.ts +++ b/portal-FE-common/src/app/layout/components/userbar/userbar.component.ts @@ -88,8 +88,9 @@ export class UserbarComponent implements OnInit { for (var i = 0; i < maxItems; i++) { var data = { userId: _res[i], - linkQ: this.api.linkQ, - linkPic: this.api.linkPic + linkQ: this.sanitizer.bypassSecurityTrustResourceUrl(this.api.linkQ + _res[i]), + linkPic: this.api.linkPic + _res[i], + linkPicURL:this.api.linkPic } this.userList.push(data); }