From d0ba3699204fca969024da5179ac9665d726f037 Mon Sep 17 00:00:00 2001 From: Ilia Orlov <66363651+illfixit@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:00:32 +0200 Subject: [PATCH] feat: case insensitive search (#780) --- CHANGELOG.md | 1 + .../asset-page/asset-page/asset-page.component.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 519da2305..af4774029 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ the detailed section referring to by linking pull requests or issues. #### Patch - Copyable contact email and subject fields on asset and data offer detail dialogs +- Assets Page search input field is now case insensitive ## [v4.1.0] - 2024-07-24 diff --git a/src/app/routes/connector-ui/asset-page/asset-page/asset-page.component.ts b/src/app/routes/connector-ui/asset-page/asset-page/asset-page.component.ts index 116920020..93f9a99f0 100644 --- a/src/app/routes/connector-ui/asset-page/asset-page/asset-page.component.ts +++ b/src/app/routes/connector-ui/asset-page/asset-page/asset-page.component.ts @@ -43,7 +43,9 @@ export class AssetPageComponent implements OnInit, OnDestroy { Fetched.map( (assets): AssetList => ({ filteredAssets: assets.filter((asset) => - asset.title?.includes(this.searchText), + asset.title + ?.toLowerCase() + .includes(this.searchText.toLowerCase()), ), numTotalAssets: assets.length, }),