From 3c8f2407129fb071c8862aae7166067653297510 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 12 Apr 2022 16:21:38 +0200 Subject: [PATCH] ui: datastore options: fix active-ops-tracking store leak without this the store stayed active in the background and kept updating every 3s for every datastore the ui was opened. Signed-off-by: Thomas Lamprecht --- www/datastore/OptionView.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/www/datastore/OptionView.js b/www/datastore/OptionView.js index fdba54df..0673f94a 100644 --- a/www/datastore/OptionView.js +++ b/www/datastore/OptionView.js @@ -66,12 +66,18 @@ Ext.define('PBS.Datastore.Options', { }, stopUpdates: function() { - let view = this.getView(); + let me = this; + let view = me.getView(); + view.rstore.stopUpdate(); + me.activeOperationsRstore.stopUpdate(); }, startUpdates: function() { - let view = this.getView(); + let me = this; + let view = me.getView(); + view.rstore.startUpdate(); + me.activeOperationsRstore.startUpdate(); }, },