summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2018-01-11 19:13:03 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2018-01-11 19:13:03 +0800
commitf093dcdbc4012a64c11a293052afbc74d84c8c5a (patch)
tree519bfc5640253be40a25a1dde2f071a350331f9e /sdc-workflow-designer-ui/src/app/components/container/container.component.ts
parent761b385b2a0a6dbec10717e6d94f1cd1e04bb2ef (diff)
add backend service
add data access interfaces for template data Issue-ID: SDC-905 Change-Id: Ie632b00dbc6ede01b0ee8a3c7abdbbc1f476f1e4 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/components/container/container.component.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/components/container/container.component.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/sdc-workflow-designer-ui/src/app/components/container/container.component.ts b/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
index f35c2482..63ea84d9 100644
--- a/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
+++ b/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
@@ -16,6 +16,7 @@ import { SequenceFlow } from '../../model/workflow/sequence-flow';
import { WorkflowElement } from '../../model/workflow/workflow-element';
import { WorkflowNode } from '../../model/workflow/workflow-node';
import { BroadcastService } from '../../services/broadcast.service';
+import { DataService } from '../../services/data/data.service';
import { JsPlumbService } from '../../services/jsplumb.service';
import { ModelService } from '../../services/model.service';
@@ -39,7 +40,7 @@ export class ContainerComponent implements AfterViewChecked, AfterViewInit, OnIn
private needInitSequence = false;
constructor(private broadcastService: BroadcastService, private jsPlumbService: JsPlumbService,
- public modelService: ModelService) {
+ private dataService: DataService, public modelService: ModelService) {
}
@HostListener('window:keyup.delete', ['$event']) ondelete(event: KeyboardEvent) {
@@ -73,6 +74,9 @@ export class ContainerComponent implements AfterViewChecked, AfterViewInit, OnIn
public ngOnInit() {
this.jsPlumbService.initJsPlumbInstance(this.modelService.rootNodeId);
+ this.broadcastService.backendServiceReady$.subscribe(() => {
+ this.dataService.initData();
+ });
this.broadcastService.planModel$.subscribe(() => {
this.needInitSequence = true;
});