2020-05-20 10:15:38 +00:00
|
|
|
Ext.define('PBS.DataStorePanel', {
|
|
|
|
extend: 'Ext.tab.Panel',
|
|
|
|
alias: 'widget.pbsDataStorePanel',
|
|
|
|
mixins: ['Proxmox.Mixin.CBind'],
|
|
|
|
|
|
|
|
cbindData: function(initalConfig) {
|
|
|
|
let me = this;
|
|
|
|
return {
|
|
|
|
aclPath: `/datastore/${me.datastore}`,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
|
|
|
|
border: false,
|
|
|
|
defaults: {
|
|
|
|
border: false,
|
|
|
|
},
|
|
|
|
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
xtype: 'pbsDataStoreContent',
|
|
|
|
cbind: {
|
|
|
|
datastore: '{datastore}',
|
|
|
|
},
|
|
|
|
},
|
2020-05-26 10:19:04 +00:00
|
|
|
{
|
|
|
|
xtype: 'pbsDataStoreStatistic',
|
|
|
|
cbind: {
|
|
|
|
datastore: '{datastore}',
|
|
|
|
},
|
|
|
|
},
|
2020-05-20 10:15:38 +00:00
|
|
|
{
|
|
|
|
itemId: 'acl',
|
|
|
|
xtype: 'pbsACLView',
|
|
|
|
aclExact: true,
|
|
|
|
cbind: {
|
|
|
|
aclPath: '{aclPath}',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
|
|
|
|
initComponent: function() {
|
|
|
|
let me = this;
|
2020-07-02 15:20:38 +00:00
|
|
|
me.title = `${gettext("Datastore")}: ${me.datastore}`;
|
2020-05-20 10:15:38 +00:00
|
|
|
me.callParent();
|
|
|
|
},
|
|
|
|
});
|