mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-08-05 14:52:51 +00:00
ui: sync view: set proxy on view instead of model
In order to load data using the same model from different sources, set the proxy on the store instead of the model. This allows to use the view to display sync jobs in either pull or push direction, by setting the `sync-direction` ont the view. Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
This commit is contained in:
parent
9aa213b88e
commit
5462d9d44d
@ -16,10 +16,6 @@ Ext.define('pbs-sync-jobs-status', {
|
||||
'comment',
|
||||
],
|
||||
idProperty: 'id',
|
||||
proxy: {
|
||||
type: 'proxmox',
|
||||
url: '/api2/json/admin/sync',
|
||||
},
|
||||
});
|
||||
|
||||
Ext.define('PBS.config.SyncJobView', {
|
||||
@ -153,6 +149,10 @@ Ext.define('PBS.config.SyncJobView', {
|
||||
storeid: 'pbs-sync-jobs-status',
|
||||
model: 'pbs-sync-jobs-status',
|
||||
interval: 5000,
|
||||
proxy: {
|
||||
type: 'proxmox',
|
||||
url: '/api2/json/admin/sync',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user