use (de)activate events for dns/timeview
this allows us to properly stop the updatestore when in a tab/cardpanel Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
4753e65dd6
commit
84af78a1be
@ -39,7 +39,8 @@ Ext.define('Proxmox.node.DNSView', {
|
||||
|
||||
me.callParent();
|
||||
|
||||
me.on('activate', me.rstore.startUpdate);
|
||||
me.on('deactivate', me.rstore.stopUpdate);
|
||||
me.on('destroy', me.rstore.stopUpdate);
|
||||
me.rstore.startUpdate();
|
||||
}
|
||||
});
|
||||
|
@ -50,12 +50,8 @@ Ext.define('Proxmox.node.TimeView', {
|
||||
|
||||
me.callParent();
|
||||
|
||||
me.rstore.startUpdate();
|
||||
},
|
||||
|
||||
onDestroy: function() {
|
||||
var me = this;
|
||||
me.rstore.stopUpdate();
|
||||
me.callParent();
|
||||
me.on('activate', me.rstore.startUpdate);
|
||||
me.on('deactivate', me.rstore.stopUpdate);
|
||||
me.on('destroy', me.rstore.stopUpdate);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user