From 861a8a48fc0076b20d2b9c443baabcf83427015e Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Thu, 29 Apr 2021 13:49:38 +0200 Subject: [PATCH] Add dataFilter to children/count --- projects/common/src/fm/services/item.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index 4924c55..8f643e0 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -94,9 +94,12 @@ export class ItemService { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params }); } - getChildItemListCount(parentcode: string, itemType: string): Observable { + getChildItemListCount(parentcode: string, itemType: string,dataFilter?: any): Observable { var params = new HttpParams(); params = params.append("it", itemType); + if (dataFilter != null) { + params = params.append("df", JSON.stringify(dataFilter)); + } return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children/count`, { params: params }); }