[AAE-12179] Remove process-services and content-services dependencies… (#8161)

* [AAE-12179] Remove process-services and content-services dependencies from core comment-list component

* [AAE-12179] Remove comment-list injection token

* [AAE-12179] remove token injection in task module and node module
This commit is contained in:
Diogo Bastos
2023-01-31 15:21:01 +00:00
committed by GitHub
parent 11c3a02acc
commit 0ab39e28fd
28 changed files with 304 additions and 262 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { AlfrescoApiService, CommentModel, CommentsService, UserProcessModel } from '@alfresco/adf-core';
import { AlfrescoApiService, CommentModel, CommentsService, PeopleProcessService, UserProcessModel } from '@alfresco/adf-core';
import { ActivitiCommentsApi, CommentRepresentation } from '@alfresco/js-api';
import { Injectable } from '@angular/core';
import { from, Observable, throwError } from 'rxjs';
@@ -33,7 +33,8 @@ export class TaskCommentsService implements CommentsService {
}
constructor(
private apiService: AlfrescoApiService
private apiService: AlfrescoApiService,
private peopleProcessService: PeopleProcessService
) {}
/**
@@ -104,4 +105,8 @@ export class TaskCommentsService implements CommentsService {
private handleError(error: any) {
return throwError(error || 'Server error');
}
getUserImage(user: UserProcessModel): string {
return this.peopleProcessService.getUserImage(user);
}
}