You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/05/20 09:17:37 UTC
[incubator-streampipes] 02/02: [STREAMPIPES-365] Fix bug in
pipeline validation
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/incubator-streampipes.git
commit a3021bb8b1e99b805548ae435b61bffc9e218f3a
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Thu May 20 11:17:21 2021 +0200
[STREAMPIPES-365] Fix bug in pipeline validation
---
ui/src/app/editor/components/pipeline/pipeline.component.ts | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ui/src/app/editor/components/pipeline/pipeline.component.ts b/ui/src/app/editor/components/pipeline/pipeline.component.ts
index de33c1e..c478963 100644
--- a/ui/src/app/editor/components/pipeline/pipeline.component.ts
+++ b/ui/src/app/editor/components/pipeline/pipeline.component.ts
@@ -136,9 +136,11 @@ export class PipelineComponent implements OnInit, OnDestroy {
}
validatePipeline() {
- this.ngZone.run(() => {
- this.pipelineValid = this.PipelineValidationService
- .isValidPipeline(this.rawPipelineModel.filter(pe => !(pe.settings.disabled)), this.preview);
+ setTimeout(() => {
+ this.ngZone.run(() => {
+ this.pipelineValid = this.PipelineValidationService
+ .isValidPipeline(this.rawPipelineModel.filter(pe => !(pe.settings.disabled)), this.preview);
+ });
});
}
@@ -281,6 +283,7 @@ export class PipelineComponent implements OnInit, OnDestroy {
this.EditorService.makePipelineAssemblyEmpty(true);
}
this.JsplumbBridge.repaintEverything();
+ this.validatePipeline();
this.triggerPipelineCacheUpdate();
}