diff options
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.ts | 6 |
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; }); |