ui: node config: avoid split listeners

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-04-11 11:09:38 +02:00
parent 9ee2ef2e55
commit 66b88dadba
1 changed files with 3 additions and 10 deletions

View File

@ -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);
},
});