[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, LogService, CommentModel } from '@alfresco/adf-core';
import { AlfrescoApiService, LogService, CommentModel, CommentsService, PeopleContentService } from '@alfresco/adf-core';
import { CommentEntry, CommentsApi, Comment } from '@alfresco/js-api';
import { Injectable } from '@angular/core';
import { Observable, from, throwError } from 'rxjs';
@@ -24,7 +24,7 @@ import { map, catchError } from 'rxjs/operators';
@Injectable({
providedIn: 'root'
})
export class NodeCommentsService {
export class NodeCommentsService implements CommentsService {
private _commentsApi: CommentsApi;
get commentsApi(): CommentsApi {
@@ -34,7 +34,8 @@ export class NodeCommentsService {
constructor(
private apiService: AlfrescoApiService,
private logService: LogService
private logService: LogService,
private peopleContentService: PeopleContentService
) {}
/**
@@ -99,4 +100,8 @@ export class NodeCommentsService {
this.logService.error(error);
return throwError(error || 'Server error');
}
getUserImage(user: string): string {
return this.peopleContentService.getUserProfileImage(user);
}
}