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

SvenO3 pushed a commit to branch 
4568-allow-reordering-and-restructuring-of-assets-in-asset-view-edit-mode
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to 
refs/heads/4568-allow-reordering-and-restructuring-of-assets-in-asset-view-edit-mode
 by this push:
     new facd983fac Expand asset when adding new ones
facd983fac is described below

commit facd983facbe9a9081b222d9eb50b9bbdab60430
Author: Sven Oehler <[email protected]>
AuthorDate: Mon Jun 22 13:15:00 2026 +0200

    Expand asset when adding new ones
---
 .../asset-selection-panel/asset-selection-panel.component.ts          | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/ui/src/app/assets/components/asset-details/edit-asset/asset-selection-panel/asset-selection-panel.component.ts
 
b/ui/src/app/assets/components/asset-details/edit-asset/asset-selection-panel/asset-selection-panel.component.ts
index bf96ff0479..57a6cc1503 100644
--- 
a/ui/src/app/assets/components/asset-details/edit-asset/asset-selection-panel/asset-selection-panel.component.ts
+++ 
b/ui/src/app/assets/components/asset-details/edit-asset/asset-selection-panel/asset-selection-panel.component.ts
@@ -123,10 +123,12 @@ export class SpAssetSelectionPanelComponent implements 
OnInit, OnDestroy {
     }
 
     addAsset(node: SpAsset) {
-        this.getChildAssets(node).push(this.makeNewAsset());
+        const newAsset = this.makeNewAsset();
+        this.getChildAssets(node).push(newAsset);
         this.dataSource.data = [this.assetModel];
         this.treeControl.dataNodes = [this.assetModel];
         this.rerenderTree();
+        this.expandToAsset(newAsset.assetId);
     }
 
     rerenderTree(): void {

Reply via email to