From 66b88dadba76a56e190e010a3e63de7759cc6417 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Mon, 11 Apr 2022 11:09:38 +0200 Subject: [PATCH] ui: node config: avoid split listeners Signed-off-by: Thomas Lamprecht --- www/config/NodeOptionView.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/www/config/NodeOptionView.js b/www/config/NodeOptionView.js index bb12513b..ae6453fe 100644 --- a/www/config/NodeOptionView.js +++ b/www/config/NodeOptionView.js @@ -13,6 +13,9 @@ Ext.define('PBS.NodeOptionView', { listeners: { itemdblclick: function() { this.run_editor(); }, + activate: function() { this.rstore.startUpdate(); }, + destroy: function() { this.rstore.stopUpdate(); }, + deactivate: function() { this.rstore.stopUpdate(); }, }, tbar: [ @@ -52,14 +55,4 @@ Ext.define('PBS.NodeOptionView', { renderer: Proxmox.Utils.render_language, }, ], - - initComponent: function() { - let me = this; - - me.callParent(); - - me.on('activate', me.rstore.startUpdate); - me.on('destroy', me.rstore.stopUpdate); - me.on('deactivate', me.rstore.stopUpdate); - }, });