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

riemer 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 d901b927f9 refactor(#4024): Remove legacy button add nested in 
event-property-row.component.ts (#4025)
d901b927f9 is described below

commit d901b927f9c56b7adf290581a07059d2d95f670d
Author: Philipp Zehnder <[email protected]>
AuthorDate: Thu Dec 4 17:57:54 2025 +0100

    refactor(#4024): Remove legacy button add nested in 
event-property-row.component.ts (#4025)
---
 .../event-property-row.component.html              | 14 ---------
 .../event-property-row.component.ts                | 34 +++++++++-------------
 2 files changed, 13 insertions(+), 35 deletions(-)

diff --git 
a/ui/src/app/connect/components/adapter-configuration/schema-editor/event-property-row/event-property-row.component.html
 
b/ui/src/app/connect/components/adapter-configuration/schema-editor/event-property-row/event-property-row.component.html
index cb6cd9a5bb..aecb13e372 100644
--- 
a/ui/src/app/connect/components/adapter-configuration/schema-editor/event-property-row/event-property-row.component.html
+++ 
b/ui/src/app/connect/components/adapter-configuration/schema-editor/event-property-row/event-property-row.component.html
@@ -140,20 +140,6 @@
             </div>
         }
 
-        @if (isNested) {
-            <div fxLayoutAlign="end center">
-                <button
-                    [disabled]="!isEditable"
-                    color="accent"
-                    mat-button
-                    (click)="addNestedProperty(node.data)"
-                >
-                    <mat-icon [matTooltip]="'Add a Nested Property' | 
translate"
-                        >queue</mat-icon
-                    >
-                </button>
-            </div>
-        }
         @if (isNested || isPrimitive || isList) {
             <div fxLayoutAlign="end center" class="ml-5 mr-5">
                 <button
diff --git 
a/ui/src/app/connect/components/adapter-configuration/schema-editor/event-property-row/event-property-row.component.ts
 
b/ui/src/app/connect/components/adapter-configuration/schema-editor/event-property-row/event-property-row.component.ts
index cab0d48a39..c79af8bae5 100644
--- 
a/ui/src/app/connect/components/adapter-configuration/schema-editor/event-property-row/event-property-row.component.ts
+++ 
b/ui/src/app/connect/components/adapter-configuration/schema-editor/event-property-row/event-property-row.component.ts
@@ -16,7 +16,14 @@
  *
  */
 
-import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
+import {
+    Component,
+    EventEmitter,
+    inject,
+    Input,
+    OnInit,
+    Output,
+} from '@angular/core';
 import { TreeNode } from '@ali-hm/angular-tree-component';
 import {
     DataType,
@@ -34,7 +41,6 @@ import { DialogService, PanelType } from 
'@streampipes/shared-ui';
 import { StaticValueTransformService } from 
'../../../../services/static-value-transform.service';
 import { EventPropertyUtilsService } from 
'../../../../services/event-property-utils.service';
 import { ShepherdService } from 
'../../../../../services/tour/shepherd.service';
-import { IdGeneratorService } from 
'../../../../../core-services/id-generator/id-generator.service';
 
 @Component({
     selector: 'sp-event-property-row',
@@ -43,6 +49,11 @@ import { IdGeneratorService } from 
'../../../../../core-services/id-generator/id
     standalone: false,
 })
 export class EventPropertyRowComponent implements OnInit {
+    private staticValueService = inject(StaticValueTransformService);
+    private dialogService = inject(DialogService);
+    private epUtils = inject(EventPropertyUtilsService);
+    private shepherdService = inject(ShepherdService);
+
     @Input() node: TreeNode;
     @Input() isEditable = true;
     @Input() eventSchema: EventSchema = new EventSchema();
@@ -71,14 +82,6 @@ export class EventPropertyRowComponent implements OnInit {
     originalRuntimeName: string;
     originalProperty: EventPropertyUnion;
 
-    constructor(
-        private staticValueService: StaticValueTransformService,
-        private dialogService: DialogService,
-        private epUtils: EventPropertyUtilsService,
-        private shepherdService: ShepherdService,
-        private idGeneratorService: IdGeneratorService,
-    ) {}
-
     ngOnInit() {
         this.label = this.getLabel(this.node.data);
         this.isPrimitive = this.isEventPropertyPrimitive(this.node.data);
@@ -247,15 +250,4 @@ export class EventPropertyRowComponent implements OnInit {
         this.countSelectedChange.emit(this.countSelected);
         this.refreshTreeEmitter.emit(false);
     }
-
-    public addNestedProperty(eventProperty: EventPropertyNested): void {
-        const uuid: string = this.idGeneratorService.generate(25);
-        if (!eventProperty.eventProperties) {
-            eventProperty.eventProperties = new Array<EventPropertyUnion>();
-        }
-        const property: EventPropertyNested = new EventPropertyNested();
-        property.elementId = uuid;
-        eventProperty.eventProperties.push(property);
-        this.refreshTreeEmitter.emit(false);
-    }
 }

Reply via email to