diff options
Diffstat (limited to 'cds-ui/client/src/app/common')
-rw-r--r-- | cds-ui/client/src/app/common/constants/app-constants.ts | 6 | ||||
-rw-r--r-- | cds-ui/client/src/app/common/shared/pipes/search.pipe.ts | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/cds-ui/client/src/app/common/constants/app-constants.ts b/cds-ui/client/src/app/common/constants/app-constants.ts index 0bfe5cade..d4e8989c1 100644 --- a/cds-ui/client/src/app/common/constants/app-constants.ts +++ b/cds-ui/client/src/app/common/constants/app-constants.ts @@ -95,4 +95,10 @@ export const GlobalContants = { export const LoopbackConfig = { url: "http://127.0.0.1:3000", authtoken: "ccsdkapps" +} + +export const ResourceDictionaryURLs = { + saveResourceDictionary: '/resourcedictionary/save', + searchResourceDictionaryByTags: '/resourcedictionary/search', + searchResourceDictionaryByName: '' }
\ No newline at end of file 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 |