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


The following commit(s) were added to refs/heads/dev by this push:
     new 2115359  [STREAMPIPES-372] Update health status of pipelines in 
notifications dialog
2115359 is described below

commit 2115359e24953abe8b97c12d6a78728e5a26a7c0
Author: Dominik Riemer <[email protected]>
AuthorDate: Wed May 26 23:11:54 2021 +0200

    [STREAMPIPES-372] Update health status of pipelines in notifications dialog
---
 .../dialog/pipeline-notifications/pipeline-notifications.component.ts  | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
 
b/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
index 142c19e..3e43fc0 100644
--- 
a/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
+++ 
b/ui/src/app/pipelines/dialog/pipeline-notifications/pipeline-notifications.component.ts
@@ -43,6 +43,9 @@ export class PipelineNotificationsComponent implements OnInit 
{
 
   acknowledgeAndClose() {
     this.pipeline.pipelineNotifications = [];
+    if (this.pipeline.healthStatus === "REQUIRES_ATTENTION") {
+      this.pipeline.healthStatus = "OK";
+    }
     this.pipelineService.updatePipeline(this.pipeline).subscribe(msg => {
       this.dialogRef.close();
     });

Reply via email to