mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-05 20:56:23 +00:00
add autostart and alias to UpdateStore
the alias is to use it in a declarative syntax, the autostart parameter automatically starts the update Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
b91c7ce210
commit
b07f375602
@ -9,9 +9,12 @@
|
||||
*/
|
||||
Ext.define('Proxmox.data.UpdateStore', {
|
||||
extend: 'Ext.data.Store',
|
||||
alias: 'store.update',
|
||||
|
||||
isStopped: true,
|
||||
|
||||
autoStart: false,
|
||||
|
||||
constructor: function(config) {
|
||||
var me = this;
|
||||
|
||||
@ -60,5 +63,9 @@ Ext.define('Proxmox.data.UpdateStore', {
|
||||
load_task.cancel();
|
||||
Proxmox.data.UpdateQueue.unqueue(me);
|
||||
});
|
||||
|
||||
if (me.autoStart) {
|
||||
me.startUpdate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user