[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:
Silviu Popa
2019-02-12 07:54:31 +02:00
committed by Eugenio Romano
parent c55cba5514
commit 0683c4d226
4 changed files with 15 additions and 5 deletions

View File

@@ -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)));
}