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 10:39:22 UTC

(streampipes) branch dev updated: fix: Disable live preview subscription when closing dialog (#2646)

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/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new 8f0c0ffbdc fix: Disable live preview subscription when closing dialog (#2646)
8f0c0ffbdc is described below

commit 8f0c0ffbdc532221ced32ff513d4e616c3caf09e
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Wed Mar 27 11:39:15 2024 +0100

    fix: Disable live preview subscription when closing dialog (#2646)
---
 .../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,
+                    );
+                }
             });
     }