We want to use the admin/datastore api (instead of config/datastore),
to get the restricted list of datastores.
+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',
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);