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 2024/03/27 09:29:51 UTC

(streampipes) 01/01: fix: Disable live preview subscription when closing dialog

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch fix-live-preview
in repository https://gitbox.apache.org/repos/asf/streampipes.git

commit d0789269110d68bd8b083b11628a93c01b4edeaa
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Wed Mar 27 10:29:26 2024 +0100

    fix: Disable live preview subscription when closing dialog
---
 .../pipeline-element-runtime-info.component.ts                 | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/ui/src/app/core-ui/pipeline-element-runtime-info/pipeline-element-runtime-info.component.ts b/ui/src/app/core-ui/pipeline-element-runtime-info/pipeline-element-runtime-info.component.ts
index f66a7f5694..3fd5977784 100644
--- a/ui/src/app/core-ui/pipeline-element-runtime-info/pipeline-element-runtime-info.component.ts
+++ b/ui/src/app/core-ui/pipeline-element-runtime-info/pipeline-element-runtime-info.component.ts
@@ -57,10 +57,12 @@ export class PipelineElementRuntimeInfoComponent implements OnInit, OnDestroy {
                     ([runtimeName, value]) => ({ runtimeName, value }),
                 );
 
-                this.timer = setTimeout(
-                    () => this.getLatestRuntimeInfo(),
-                    1000,
-                );
+                if (this._pollingActive) {
+                    this.timer = setTimeout(
+                        () => this.getLatestRuntimeInfo(),
+                        1000,
+                    );
+                }
             });
     }