mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Fixed wrong method and style a little
This commit is contained in:
@@ -16,8 +16,8 @@
|
|||||||
for="user-profile">
|
for="user-profile">
|
||||||
<ul class='detail-user-profile-list-mdl mdl-list'>
|
<ul class='detail-user-profile-list-mdl mdl-list'>
|
||||||
<div *ngIf="ecmUser">
|
<div *ngIf="ecmUser">
|
||||||
<span class="header-profile"><b>ECM</b></span>
|
|
||||||
<hr class="title-start">
|
<hr class="title-start">
|
||||||
|
<span class="header-profile"><b>ECM</b></span>
|
||||||
<li class="mdl-list__item mdl-list__item--two-line">
|
<li class="mdl-list__item mdl-list__item--two-line">
|
||||||
<span class="mdl-list__item-primary-content">
|
<span class="mdl-list__item-primary-content">
|
||||||
<i class="mdl-list__item-avatar">
|
<i class="mdl-list__item-avatar">
|
||||||
@@ -30,14 +30,14 @@
|
|||||||
</span>
|
</span>
|
||||||
<span class="mdl-list__item-secondary-content custom-role-style">
|
<span class="mdl-list__item-secondary-content custom-role-style">
|
||||||
<span class="role-label-user">Job Role</span>
|
<span class="role-label-user">Job Role</span>
|
||||||
{{ecmUser.jobTitle}}
|
{{ ecmUser.jobTitle ? ecmUser.jobTitle : 'N/A' }}
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</div>
|
</div>
|
||||||
|
<br>
|
||||||
<div *ngIf="bpmUser">
|
<div *ngIf="bpmUser">
|
||||||
<span class="header-profile"><b>BPM</b></span>
|
|
||||||
<hr class="title-start">
|
<hr class="title-start">
|
||||||
|
<span class="header-profile"><b>BPM</b></span>
|
||||||
<li class="mdl-list__item mdl-list__item--two-line">
|
<li class="mdl-list__item mdl-list__item--two-line">
|
||||||
<span class="mdl-list__item-primary-content">
|
<span class="mdl-list__item-primary-content">
|
||||||
<i class="mdl-list__item-avatar">
|
<i class="mdl-list__item-avatar">
|
||||||
|
@@ -60,7 +60,12 @@ export class BpmUserService {
|
|||||||
* Call js api to get current user profile picture
|
* Call js api to get current user profile picture
|
||||||
*/
|
*/
|
||||||
callApiGetProfilePicture() {
|
callApiGetProfilePicture() {
|
||||||
return this.authService.getAlfrescoApi().activiti.profileApi.getProfile();
|
try {
|
||||||
|
return this.authService.getAlfrescoApi().activiti.profileApi.getProfilePicture();
|
||||||
|
} catch (exc) {
|
||||||
|
console.error(exc);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user