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

SvenO3 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 c12f5074df fix(#4528): Imported assets are not visible until manual 
page refresh (#4562)
c12f5074df is described below

commit c12f5074df1eea434b524c71a3b14dfab12185dd
Author: Sven Oehler <[email protected]>
AuthorDate: Mon Jun 15 13:15:01 2026 +0200

    fix(#4528): Imported assets are not visible until manual page refresh 
(#4562)
---
 ui/src/app/configuration/export/data-export-import.component.ts     | 6 +++++-
 .../export/import-dialog/data-import-dialog.component.ts            | 5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/ui/src/app/configuration/export/data-export-import.component.ts 
b/ui/src/app/configuration/export/data-export-import.component.ts
index 4b979170c0..b9b06a1873 100644
--- a/ui/src/app/configuration/export/data-export-import.component.ts
+++ b/ui/src/app/configuration/export/data-export-import.component.ts
@@ -118,6 +118,10 @@ export class SpDataExportImportComponent implements OnInit 
{
             data: {},
         });
 
-        dialogRef.afterClosed().subscribe(() => {});
+        dialogRef.afterClosed().subscribe(result => {
+            if (result === 'import') {
+                this.loadAssets();
+            }
+        });
     }
 }
diff --git 
a/ui/src/app/configuration/export/import-dialog/data-import-dialog.component.ts 
b/ui/src/app/configuration/export/import-dialog/data-import-dialog.component.ts
index 7270ca702b..6a95b69b63 100644
--- 
a/ui/src/app/configuration/export/import-dialog/data-import-dialog.component.ts
+++ 
b/ui/src/app/configuration/export/import-dialog/data-import-dialog.component.ts
@@ -20,6 +20,7 @@ import { Component, inject } from '@angular/core';
 import {
     DialogRef,
     SpAlertBannerComponent,
+    SpAssetBrowserService,
     SplitSectionComponent,
 } from '@streampipes/shared-ui';
 import { DataExportService } from '../data-export.service';
@@ -82,6 +83,7 @@ export class SpDataImportDialogComponent {
     private dialogRef =
         inject<DialogRef<SpDataImportDialogComponent>>(DialogRef);
     private dataExportService = inject(DataExportService);
+    private assetBrowserService = inject(SpAssetBrowserService);
 
     private translateService = inject(TranslateService);
     currentImportStep = 0;
@@ -136,7 +138,8 @@ export class SpDataImportDialogComponent {
         this.dataExportService
             .triggerImport(this.selectedUploadFile, this.importConfiguration)
             .subscribe(_result => {
-                this.dialogRef.close();
+                this.assetBrowserService.refreshBrowserAssetData();
+                this.dialogRef.close('import');
             });
     }
 

Reply via email to