This is an automated email from the ASF dual-hosted git repository.
tenthe pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new ab878a73a8 3972 filter transmission (#4424)
ab878a73a8 is described below
commit ab878a73a8eda944f9e0f12c559d6f8d177071f2
Author: Jacqueline Höllig <[email protected]>
AuthorDate: Mon May 4 08:59:44 2026 +0200
3972 filter transmission (#4424)
Co-authored-by: Philipp Zehnder <[email protected]>
---
.../asset-overview/asset-overview.component.ts | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git
a/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
b/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
index c3a60dc939..e897657b6e 100644
--- a/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
+++ b/ui/src/app/assets/components/asset-overview/asset-overview.component.ts
@@ -124,6 +124,9 @@ export class SpAssetOverviewComponent implements OnInit {
this.breadcrumbService.updateBreadcrumb(
this.breadcrumbService.getRootLink(SpAssetRoutes.BASE),
);
+
+ this.loadAssets();
+
this.assetFilter$ =
this.assetFilterService.currentAssetFilter$.subscribe(filter => {
const elementIdsSet = new Set<string>();
@@ -142,12 +145,11 @@ export class SpAssetOverviewComponent implements OnInit {
}
this.currentFilterIds =
- elementIdsSet.size > 0 ? elementIdsSet : undefined;
-
+ filter?.selectedAssets === undefined
+ ? undefined
+ : elementIdsSet;
this.applyAssetFilters(this.currentFilterIds);
});
-
- this.loadAssets();
}
loadAssets(): void {
@@ -155,15 +157,12 @@ export class SpAssetOverviewComponent implements OnInit {
this.existingAssets = (result as SpAssetModel[]).sort((a, b) =>
a.assetName.localeCompare(b.assetName),
);
- this.dataSource.sort = this.sort;
- this.dataSource.data = this.existingAssets;
+ this.applyAssetFilters(this.currentFilterIds);
});
}
applyAssetFilters(elementIds: Set<string>): void {
- if (elementIds == undefined) {
- this.filteredAssets = [];
- } else if (elementIds.size == 0) {
+ if (elementIds === undefined || elementIds.size === 0) {
this.filteredAssets = this.existingAssets;
} else {
this.filteredAssets = this.existingAssets.filter(a =>