Commit Graph

8 Commits

Author SHA1 Message Date
Dominik Csapak
d4c342fb73 UpdateStore: fix 'undefined' interval
in some cases, we provide a config with interval set to 'undefined',
which gets happily applied to the config, but gets interpreted as '0'
when actually starting the task, resulting in constant api requests

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-04-16 17:59:30 +02:00
Thomas Lamprecht
4a2f360d45 update store: move store parameter into config, use getter/setter
this allows to drop setting the default values and ensures that when
interval is updated it actually effects the used update frequency.

Anything which was saved in "me" before, for example me.autoStart, is
still there and gets also updated on a me.setIsStopped(), so there
should be no effects on code using internals.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-03 08:53:21 +02:00
Thomas Lamprecht
94f1770488 update store: refactor do modern syntax
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-04-03 08:53:21 +02:00
Dominik Csapak
ff5351f775 remove updatequeue
since all modern browsers can properly handle multiple
xmlhttprequests, we do not need to serialize them ourselves, but
leave it to the browser

this fixes an issue wehre a canceled request of an updatestore
blocks all other updatestores until refresh

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2017-11-29 12:04:31 +01:00
Dietmar Maurer
929d5ff7ea UpdateStore.js - fix update problem with chrome 2017-11-23 07:27:27 +01:00
Dominik Csapak
5f0f6b13b5 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>
2017-10-11 11:46:29 +02:00
Dominik Csapak
b07f375602 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>
2017-10-11 06:44:29 +02:00
Dietmar Maurer
0bb29d3556 initial import
copied from pve-manager, remove pve-manager specific code and
rename 'pve' to 'proxmox'.
2017-01-30 09:45:41 +01:00