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 <t.lamprecht@proxmox.com>
This commit is contained in:
		@ -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();
 | 
			
		||||
	},
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user