mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
upgrade js api (#5152)
* upgrade to latest js api
* add missing types
* remove useless function
* fix types
* enable strict mode
* Revert "enable strict mode"
This reverts commit 8e3f9c4563
.
This commit is contained in:
committed by
Eugenio Romano
parent
47ec01555a
commit
b3ca2166f0
@@ -52,7 +52,7 @@ export class PeopleProcessService {
|
||||
* @returns Profile picture URL
|
||||
*/
|
||||
getUserImage(user: UserProcessModel): string {
|
||||
return this.getUserProfileImageApi(user.id);
|
||||
return this.getUserProfileImageApi(user.id.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -95,7 +95,7 @@ export class PeopleProcessService {
|
||||
return this.alfrescoJsApi.getInstance().activiti.taskActionsApi.removeInvolvedUser(taskId, node);
|
||||
}
|
||||
|
||||
private getUserProfileImageApi(userId: number) {
|
||||
private getUserProfileImageApi(userId: string): string {
|
||||
return this.alfrescoJsApi.getInstance().activiti.userApi.getUserProfilePictureUrl(userId);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user