aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2018-01-10 15:05:39 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2018-01-10 15:05:39 +0800
commit38dfd59a8b5d05266e5567f79dcf30fd10ef7c54 (patch)
tree043a724663d3324ce80cc546a241898e99796897 /sdc-workflow-designer-ui/src/app/components/property/properties.component.ts
parenteb2d1c385e5c3d96e770b776f74ddbde9f2b133f (diff)
split element by type
split elements by type in toolbar Issue-ID: SDC-895 Change-Id: I0254c9c5f938df80942d60ffefe4b8577c788233 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/components/property/properties.component.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/components/property/properties.component.ts17
1 files changed, 6 insertions, 11 deletions
diff --git a/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts b/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts
index 2091d83c..d3a6a416 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts
+++ b/sdc-workflow-designer-ui/src/app/components/property/properties.component.ts
@@ -35,8 +35,8 @@ export class PropertiesComponent implements AfterViewInit {
public planItems: PlanTreeviewItem[];
constructor(private broadcastService: BroadcastService,
- private jsPlumnService: JsPlumbService,
- private processService: ModelService) {
+ private jsPlumbService: JsPlumbService,
+ private modelService: ModelService) {
}
@@ -44,19 +44,14 @@ export class PropertiesComponent implements AfterViewInit {
this.broadcastService.showProperty$.subscribe(show => this.show = show);
this.broadcastService.nodeProperty$.subscribe(node => {
this.node = node;
- this.planItems = this.processService.getPlanParameters(this.node.id);
+ this.planItems = this.modelService.getPlanParameters(this.node.id);
});
}
- public nodeNameChanged() {
- this.titleEditing = !this.titleEditing;
- this.jsPlumnService.jsplumbInstance.repaintEverything();
- }
-
public deleteNode() {
this.show = false;
-
- this.jsPlumnService.remove(this.node.id);
- this.processService.deleteNode(this.node.id);
+ const parentId = this.jsPlumbService.getParentNodeId(this.node.id);
+ this.jsPlumbService.remove(this.node);
+ this.modelService.deleteNode(parentId, this.node.id);
}
}