58f950c546
Not even hard feeling on 'Datastore' vs. 'Data Store' but consistency is desired in such names. Talked shortly with Dominik, which also slightly favored the one without space - so just go for that one. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
47 lines
782 B
JavaScript
47 lines
782 B
JavaScript
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}',
|
|
},
|
|
},
|
|
{
|
|
xtype: 'pbsDataStoreStatistic',
|
|
cbind: {
|
|
datastore: '{datastore}',
|
|
},
|
|
},
|
|
{
|
|
itemId: 'acl',
|
|
xtype: 'pbsACLView',
|
|
aclExact: true,
|
|
cbind: {
|
|
aclPath: '{aclPath}',
|
|
},
|
|
},
|
|
],
|
|
|
|
initComponent: function() {
|
|
let me = this;
|
|
me.title = `${gettext("Datastore")}: ${me.datastore}`;
|
|
me.callParent();
|
|
},
|
|
});
|