Fixed wrong method and style a little

This commit is contained in:
Vito Albano
2016-10-03 13:41:34 +01:00
parent ab1f65d44b
commit 2219047c1a
2 changed files with 10 additions and 5 deletions

View File

@@ -16,8 +16,8 @@
for="user-profile">
<ul class='detail-user-profile-list-mdl mdl-list'>
<div *ngIf="ecmUser">
<span class="header-profile"><b>ECM</b></span>
<hr class="title-start">
<span class="header-profile"><b>ECM</b></span>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="mdl-list__item-avatar">
@@ -30,14 +30,14 @@
</span>
<span class="mdl-list__item-secondary-content custom-role-style">
<span class="role-label-user">Job Role</span>
{{ecmUser.jobTitle}}
{{ ecmUser.jobTitle ? ecmUser.jobTitle : 'N/A' }}
</span>
</li>
</div>
<br>
<div *ngIf="bpmUser">
<span class="header-profile"><b>BPM</b></span>
<hr class="title-start">
<span class="header-profile"><b>BPM</b></span>
<li class="mdl-list__item mdl-list__item--two-line">
<span class="mdl-list__item-primary-content">
<i class="mdl-list__item-avatar">

View File

@@ -60,7 +60,12 @@ export class BpmUserService {
* Call js api to get current user profile picture
*/
callApiGetProfilePicture() {
return this.authService.getAlfrescoApi().activiti.profileApi.getProfile();
try {
return this.authService.getAlfrescoApi().activiti.profileApi.getProfilePicture();
} catch (exc) {
console.error(exc);
return null;
}
}
/**