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:50 UTC

(streampipes) branch fix-live-preview created (now d078926911)

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

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


      at d078926911 fix: Disable live preview subscription when closing dialog

This branch includes the following new commits:

     new d078926911 fix: Disable live preview subscription when closing dialog

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



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

Posted by ri...@apache.org.
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,
+                    );
+                }
             });
     }