From 82f1f0a6156b7ca4847041f4f9140e05a37c1891 Mon Sep 17 00:00:00 2001 From: Arundathi Patil Date: Fri, 19 Apr 2019 17:34:54 +0530 Subject: Resourcedictionary-fetching resources from backend Intgrated UI with loopback to fetch resources from backend on search Issue-ID: CCSDK-1217 Change-Id: I4a1c30748d24079bc976f6785df39bbe60777489 Signed-off-by: Arundathi Patil --- cds-ui/client/src/app/common/shared/pipes/search.pipe.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cds-ui/client/src/app/common/shared/pipes') diff --git a/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts b/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts index b0d37c3d1..08c76df5b 100644 --- a/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts +++ b/cds-ui/client/src/app/common/shared/pipes/search.pipe.ts @@ -31,7 +31,11 @@ export class SearchPipe implements PipeTransform{ if(!searchText) return items; searchText = searchText.toLowerCase(); return items.filter( it => { - return it.toLowerCase().includes(searchText); + if(it.tags) { + return it.tags.toLowerCase().includes(searchText); + } else { + return items; + } }); } } \ No newline at end of file -- cgit 1.2.3-korg