From 9a467b07f4aece25b9cf458c315b65ce182c28f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=B6cker?= Date: Thu, 8 Feb 2024 11:53:35 +0100 Subject: [PATCH] UI Install/Update Component filter to lower case since the filter is applied to entry id/alias .toLowerCase() the filter themself should be lower case too. Co-authored-by: Ulrich Laupp <38915524+laupp@users.noreply.github.com> --- ui/src/app/edge/settings/component/install/index.component.ts | 2 +- ui/src/app/edge/settings/component/update/index.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/app/edge/settings/component/install/index.component.ts b/ui/src/app/edge/settings/component/install/index.component.ts index 0801e25842a..0cb8df51673 100644 --- a/ui/src/app/edge/settings/component/install/index.component.ts +++ b/ui/src/app/edge/settings/component/install/index.component.ts @@ -42,7 +42,7 @@ export class IndexComponent implements OnInit { updateFilter(completeFilter: string) { // take each space-separated string as an individual and-combined filter - let filters = completeFilter.split(' '); + let filters = completeFilter.toLowerCase().split(' '); let countFilteredEntries = 0; for (let entry of this.list) { entry.filteredFactories = entry.factories.filter(entry => diff --git a/ui/src/app/edge/settings/component/update/index.component.ts b/ui/src/app/edge/settings/component/update/index.component.ts index 4f642046af3..a0793dd77a4 100644 --- a/ui/src/app/edge/settings/component/update/index.component.ts +++ b/ui/src/app/edge/settings/component/update/index.component.ts @@ -43,7 +43,7 @@ export class IndexComponent implements OnInit { updateFilter(completeFilter: string) { // take each space-separated string as an individual and-combined filter - let filters = completeFilter.split(' '); + let filters = completeFilter.toLowerCase().split(' '); let countFilteredEntries = 0; for (let entry of this.list) { entry.filteredComponents = entry.components.filter(entry =>