proxmox-widget-toolkit/data
Dominik Csapak eb54b1142e data/DiffStore: auto-create the rstore if its just a config
when rstore is not instanciated but only a config,
auto-create it with its type

this allows us to configure an diff/rstore combination completely
declaratively like this:

store: {
    type: 'diff',
    autoDestroy: true,
    autoDestroyRstore: true,
    rstore: {
	type: 'update',
	model: 'some-model',
	autoStart: true,
	interval: 5000,
    },
},

the only thing we have to be careful about is to either
do a manual 'stopUpdate' somewhere, or use the 'autoDestroyRstore' flag

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2020-05-07 12:47:20 +02:00
..
reader tree-wide trailing whitespace cleanup 2019-09-30 08:00:34 +02:00
DiffStore.js data/DiffStore: auto-create the rstore if its just a config 2020-05-07 12:47:20 +02:00
ObjectStore.js fixup: rename returnCompleteRecord to getRecord 2018-04-30 10:46:30 +02:00
ProxmoxProxy.js PendingObjectGrid.js: import from pve-manager 2017-02-24 07:45:09 +01:00
RRDStore.js add RRDStore class 2017-08-29 07:27:40 +02:00
TimezoneStore.js fix #1784: allow to set UTC as Timezone 2019-04-15 11:31:26 +00:00
UpdateStore.js UpdateStore: fix 'undefined' interval 2020-04-16 17:59:30 +02:00