mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-4055] ProcessAttachmentListComponent- add opt parameter on process-instances api call (#4292)
* [ADF-4055] ProcessAttachmentListComponent - add opts parameter on load attachments api call * [ADF-4055] fix lint * [ADF-4055] - fix unit test * [ADF-4055] - change opt parameter format * [ADF-4055] remove useless unit test from process-content
This commit is contained in:
committed by
Eugenio Romano
parent
c55cba5514
commit
0683c4d226
@@ -128,10 +128,11 @@ export class ProcessContentService {
|
||||
/**
|
||||
* Gets related content items for a process instance.
|
||||
* @param processId ID of the target process
|
||||
* @param opts Options supported by JS-API
|
||||
* @returns Metadata for the content
|
||||
*/
|
||||
getProcessRelatedContent(processId: string): Observable<any> {
|
||||
return from(this.contentApi.getRelatedContentForProcessInstance(processId))
|
||||
getProcessRelatedContent(processId: string, opts?: any): Observable<any> {
|
||||
return from(this.contentApi.getRelatedContentForProcessInstance(processId, opts))
|
||||
.pipe(catchError((err) => this.handleError(err)));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user