ui: add RunningTasksStore
so that we have a global store for running tasks Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
bf7e2a4648
commit
cc83c13660
@ -54,20 +54,8 @@ Ext.define('PBS.RunningTasks', {
|
||||
store: {
|
||||
type: 'diff',
|
||||
autoDestroy: true,
|
||||
autoDestroyRstore: true,
|
||||
sorters: 'starttime',
|
||||
rstore: {
|
||||
type: 'update',
|
||||
autoStart: true,
|
||||
interval: 3000,
|
||||
storeid: 'pbs-running-tasks-dash',
|
||||
model: 'proxmox-tasks',
|
||||
proxy: {
|
||||
type: 'proxmox',
|
||||
// maybe separate api call?
|
||||
url: '/api2/json/nodes/localhost/tasks?running=1'
|
||||
},
|
||||
},
|
||||
rstore: PBS.data.RunningTasksStore,
|
||||
},
|
||||
|
||||
columns: [
|
||||
|
Reference in New Issue
Block a user