aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts')
-rw-r--r--sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts b/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts
index 58b28370..6c264646 100644
--- a/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts
+++ b/sdc-workflow-designer-ui/src/app/components/property/rest-task/rest-task.component.ts
@@ -46,9 +46,14 @@ export class RestTaskComponent implements AfterViewInit, OnInit {
public ngAfterViewInit() {
setTimeout(() => {
this.loadInterfaces();
+ this.notifyTaskChanged();
}, 0);
}
+ private notifyTaskChanged() {
+ this.broadcastService.broadcast(this.broadcastService.nodeTaskChange, this.node);
+ }
+
public getText4Microservice(microservice: Microservice): string {
return `${microservice.name} [${microservice.version}] `;
}
@@ -78,6 +83,8 @@ export class RestTaskComponent implements AfterViewInit, OnInit {
this.node.responses = [];
this.updateMethodInfo();
+
+ this.notifyTaskChanged();
}