mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 09:22:03 +00:00
fix updateStore destroy
the store never fires/gets a destroy event, thus it never stops the load_task and never unqueues itself in case the store gets destroyed but not explicitely stopped with overriding the destroy method, this works now as intended Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
840cd4669e
commit
e2c2bf5e50
@ -12,6 +12,13 @@ Ext.define('PVE.data.UpdateStore', {
|
|||||||
|
|
||||||
isStopped: true,
|
isStopped: true,
|
||||||
|
|
||||||
|
destroy: function() {
|
||||||
|
var me = this;
|
||||||
|
me.load_task.cancel();
|
||||||
|
PVE.data.UpdateQueue.unqueue(me);
|
||||||
|
me.callParent();
|
||||||
|
},
|
||||||
|
|
||||||
constructor: function(config) {
|
constructor: function(config) {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
@ -56,9 +63,6 @@ Ext.define('PVE.data.UpdateStore', {
|
|||||||
|
|
||||||
me.callParent([config]);
|
me.callParent([config]);
|
||||||
|
|
||||||
me.on('destroy', function() {
|
me.load_task = load_task;
|
||||||
load_task.cancel();
|
|
||||||
PVE.data.UpdateQueue.unqueue(me);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user