This is an automated email from the ASF dual-hosted git repository.

zehnder 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 300d329820 fix(#3974): reload asset filter after adding asset or asset 
link (#4076)
300d329820 is described below

commit 300d329820b027f43dc8405f1bb13cfc47007b81
Author: Brijesh Thakkar <[email protected]>
AuthorDate: Mon Dec 29 13:04:11 2025 +0530

    fix(#3974): reload asset filter after adding asset or asset link (#4076)
---
 .../asset-details-links/asset-details-links.component.ts         | 9 ++++++++-
 .../assets/components/asset-overview/asset-overview.component.ts | 2 ++
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git 
a/ui/src/app/assets/components/asset-details/edit-asset/asset-details-panel/asset-details-links/asset-details-links.component.ts
 
b/ui/src/app/assets/components/asset-details/edit-asset/asset-details-panel/asset-details-links/asset-details-links.component.ts
index c8c400fdc3..1a150616b6 100644
--- 
a/ui/src/app/assets/components/asset-details/edit-asset/asset-details-panel/asset-details-links/asset-details-links.component.ts
+++ 
b/ui/src/app/assets/components/asset-details/edit-asset/asset-details-panel/asset-details-links/asset-details-links.component.ts
@@ -33,7 +33,11 @@ import {
     SpAssetModel,
 } from '@streampipes/platform-services';
 import { SpManageAssetLinksDialogComponent } from 
'../../../../../dialog/manage-asset-links/manage-asset-links-dialog.component';
-import { DialogService, PanelType } from '@streampipes/shared-ui';
+import {
+    DialogService,
+    PanelType,
+    SpAssetBrowserService,
+} from '@streampipes/shared-ui';
 import { EditAssetLinkDialogComponent } from 
'../../../../../dialog/edit-asset-link/edit-asset-link-dialog.component';
 import { TranslateService } from '@ngx-translate/core';
 import { AssetLinkTableComponent } from 
'../../../view-asset/view-asset-links/asset-link-table/asset-link-table.component';
@@ -66,6 +70,7 @@ export class AssetDetailsLinksComponent implements OnInit {
         private genericStorageService: GenericStorageService,
         private dialogService: DialogService,
         private translateService: TranslateService,
+        private assetBrowserService: SpAssetBrowserService,
     ) {}
 
     ngOnInit(): void {
@@ -97,6 +102,7 @@ export class AssetDetailsLinksComponent implements OnInit {
             if (assetLinks) {
                 this.asset.assetLinks = assetLinks;
                 this.assetLinkTable?.refreshData();
+                this.assetBrowserService.loadAssetData();
             }
         });
     }
@@ -129,6 +135,7 @@ export class AssetDetailsLinksComponent implements OnInit {
                 this.asset.assetLinks.push(storedLink);
                 this.asset.assetLinks = [...this.asset.assetLinks];
                 this.assetLinkTable?.refreshData();
+                this.assetBrowserService.loadAssetData();
             }
         });
     }
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 5e2a538ec7..843ffeaa43 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
@@ -163,6 +163,8 @@ export class SpAssetOverviewComponent implements OnInit {
 
         dialogRef.afterClosed().subscribe(ev => {
             if (ev) {
+                this.loadAssets();
+                this.assetBrowserService.loadAssetData();
                 this.goToDetailsView(assetModel, true);
             }
         });

Reply via email to