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
@@ -436,7 +436,7 @@ export class FormService {
|
||||
* @param userId ID of the target user
|
||||
* @returns URL string
|
||||
*/
|
||||
getUserProfileImageApi(userId: number): string {
|
||||
getUserProfileImageApi(userId: string): string {
|
||||
return this.apiService.getInstance().activiti.userApi.getUserProfilePictureUrl(userId);
|
||||
}
|
||||
|
||||
@@ -453,9 +453,9 @@ export class FormService {
|
||||
}
|
||||
return from(this.usersWorkflowApi.getUsers(option))
|
||||
.pipe(
|
||||
switchMap((response: any) => <UserProcessModel[]> response.data || []),
|
||||
map((user: any) => {
|
||||
user.userImage = this.getUserProfileImageApi(user.id);
|
||||
switchMap(response => <UserProcessModel[]> response.data || []),
|
||||
map((user) => {
|
||||
user.userImage = this.getUserProfileImageApi(user.id.toString());
|
||||
return of(user);
|
||||
}),
|
||||
combineAll(),
|
||||
|
Reference in New Issue
Block a user