Commit 73ff9bd3 authored by Emmanuel Kasper's avatar Emmanuel Kasper Committed by Dietmar Maurer

Enable loading of most of the datacenter config panel

This patch does the following:
 * remove the EXT5DEBUG header we added previously
 * build the items[] array as a one-dimensional array, as PVE.panel.Config
 with ExtJS5 is not able to find the elements otherwise
 * rename the problematic panel tabs with TODO suffix, to be dealed later on
parent 33477e30
/*
* Main config panel, located in Center of the ViewPort
* Datacenter config panel, located in the center of the ViewPort after the Datacenter view is selected
*/
Ext.define('PVE.dc.Config', {
......@@ -19,18 +19,17 @@ Ext.define('PVE.dc.Config', {
});
if (caps.dc['Sys.Audit']) {
me.items.push([
{
title: gettext('Summary'),
xtype: 'pveDcSummary',
itemId: 'summary'
},
{
xtype: 'pveDcOptionView',
title: gettext('Options'),
itemId: 'options'
}
]);
me.items.push({
title: gettext('Summary'),
xtype: 'pveDcSummary',
itemId: 'summary'
});
me.items.push({
xtype: 'pveDcOptionView',
title: gettext('Options'),
itemId: 'options'
});
}
if (caps.storage['Datastore.Allocate'] || caps.dc['Sys.Audit']) {
......@@ -42,7 +41,7 @@ Ext.define('PVE.dc.Config', {
}
if (caps.dc['Sys.Audit']) {
me.items.push({
me.items.push({
xtype: 'pveDcBackupView',
title: gettext('Backup'),
itemId: 'backup'
......@@ -56,47 +55,57 @@ Ext.define('PVE.dc.Config', {
});
if (caps.dc['Sys.Audit']) {
me.items.push([
{
me.items.push({
xtype: 'pveGroupView',
title: gettext('Groups'),
itemId: 'groups'
},
{
});
me.items.push({
xtype: 'pvePoolView',
title: gettext('Pools'),
itemId: 'pools'
},
{
});
me.items.push({
xtype: 'pveACLView',
title: gettext('Permissions'),
itemId: 'permissions'
},
{
});
me.items.push({
xtype: 'pveRoleView',
title: gettext('Roles'),
itemId: 'roles'
},
{
xtype: 'pveAuthView',
title: gettext('Authentication'),
});
me.items.push({
// xtype: 'pveAuthView',
// title: gettext('Authentication'),
xtype: 'gridpanel',
title: 'AuthenTODO',
itemId: 'domains'
},
{
xtype: 'pveHAPanel',
title: 'HA',
phstateid: me.hstateid,
});
me.items.push({
// xtype: 'pveHAPanel',
// title: 'HA',
xtype: 'gridpanel',
title: 'HATODO',
phstateid: me.hstateid,
itemId: 'ha'
},
{
xtype: 'pveFirewallPanel',
title: gettext('Firewall'),
});
me.items.push({
// xtype: 'pveFirewallPanel',
// title: gettext('Firewall'),
xtype: 'gridpanel',
title: 'FireTODO',
base_url: '/cluster/firewall',
fwtype: 'dc',
phstateid: me.hstateid,
itemId: 'firewall'
}
]);
});
me.items.push({
xtype: 'pveDcSupport',
......@@ -104,8 +113,6 @@ Ext.define('PVE.dc.Config', {
itemId: 'support'
});
}
//EXT5DEBUG
me.items =[];
me.callParent();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment