diff --git a/www/DataStoreStatus.js b/www/DataStoreStatus.js index b42c65bf..85a90e17 100644 --- a/www/DataStoreStatus.js +++ b/www/DataStoreStatus.js @@ -1,3 +1,13 @@ +Ext.define('pbs-datastore-list', { + extend: 'Ext.data.Model', + fields: [ 'name', 'comment' ], + proxy: { + type: 'proxmox', + url: "/api2/json/admin/datastore" + }, + idProperty: 'store' +}); + Ext.define('PBS.DataStoreStatus', { extend: 'Ext.panel.Panel', alias: 'widget.pbsDataStoreStatus', diff --git a/www/NavigationTree.js b/www/NavigationTree.js index ad62b54e..d21867cb 100644 --- a/www/NavigationTree.js +++ b/www/NavigationTree.js @@ -55,7 +55,7 @@ Ext.define('PBS.view.main.NavigationTree', { autoStart: true, interval: 15 * 1000, storeid: 'pbs-datastore-list', - model: 'pbs-data-store-config' + model: 'pbs-datastore-list' }); view.rstore.on('load', this.onLoad, this);