You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by oe...@apache.org on 2026/07/24 16:02:50 UTC
(streampipes) branch fix-asset-link-sorting created (now 867e13b863)
This is an automated email from the ASF dual-hosted git repository.
SvenO3 pushed a change to branch fix-asset-link-sorting
in repository https://gitbox.apache.org/repos/asf/streampipes.git
at 867e13b863 fix sorting of asset links in table view
This branch includes the following new commits:
new 867e13b863 fix sorting of asset links in table view
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(streampipes) 01/01: fix sorting of asset links in table view
Posted by oe...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
SvenO3 pushed a commit to branch fix-asset-link-sorting
in repository https://gitbox.apache.org/repos/asf/streampipes.git
commit 867e13b8639bd823886354b495f1cb69583c80e1
Author: Sven Oehler <oe...@web.de>
AuthorDate: Fri Jul 24 18:01:19 2026 +0200
fix sorting of asset links in table view
---
.../asset-link-table/asset-link-table.component.ts | 17 ++++++-----------
1 file changed, 6 insertions(+), 11 deletions(-)
diff --git a/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table.component.ts b/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table.component.ts
index cce831064c..1b4a3a0dc3 100644
--- a/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table.component.ts
+++ b/ui/src/app/assets/components/asset-details/view-asset/view-asset-links/asset-link-table/asset-link-table.component.ts
@@ -17,7 +17,6 @@
*/
import {
- AfterViewInit,
Component,
inject,
Input,
@@ -93,9 +92,7 @@ import { MatIcon } from '@angular/material/icon';
TranslatePipe,
],
})
-export class AssetLinkTableComponent
- implements OnInit, AfterViewInit, OnChanges, OnDestroy
-{
+export class AssetLinkTableComponent implements OnInit, OnChanges, OnDestroy {
@Input()
assetModel: SpAssetModel;
@@ -112,7 +109,11 @@ export class AssetLinkTableComponent
loading = false;
@ViewChild(MatSort)
- sort: MatSort;
+ set sort(sort: MatSort | undefined) {
+ if (sort) {
+ this.dataSource.sort = sort;
+ }
+ }
displayedColumns: string[] = [
'type',
@@ -158,12 +159,6 @@ export class AssetLinkTableComponent
this.refreshData();
}
- ngAfterViewInit() {
- setTimeout(() => {
- this.dataSource.sort = this.sort;
- });
- }
-
refreshData(): void {
this.dataSource.data = this.asset.assetLinks;
}