partially revert lxc gui structure

this patch removes the "system" group
and reorders the options like it was before,
with one exception:

console now comes at second place after summary

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-09-01 11:19:08 +02:00 committed by Dietmar Maurer
parent 8f795124ac
commit e72f428558

View File

@ -131,45 +131,57 @@ Ext.define('PVE.lxc.Config', {
xtype: 'pveLxcSummary',
iconCls: 'fa fa-book',
itemId: 'summary'
},
{
title: gettext('System'),
itemId: 'system',
expandedOnInit: true,
iconCls: 'fa fa-cube',
xtype: 'pveLxcRessourceView'
},
{
title: gettext('Options'),
itemId: 'options',
groups: ['system'],
iconCls: 'fa fa-gear',
xtype: 'pveLxcOptions'
},
{
title: gettext('Network'),
iconCls: 'fa fa-exchange',
itemId: 'network',
groups:['system'],
xtype: 'pveLxcNetworkView'
},
{
title: gettext('DNS'),
groups: ['system'],
iconCls: 'fa fa-globe',
itemId: 'dns',
xtype: 'pveLxcDNS'
},
{
title: gettext('Task History'),
itemId: 'tasks',
iconCls: 'fa fa-list',
xtype: 'pveNodeTasks',
vmidFilter: vmid
}
]
});
if (caps.vms['VM.Console']) {
me.items.push({
title: gettext('Console'),
itemId: 'console',
iconCls: 'fa fa-terminal',
xtype: 'pveNoVncConsole',
vmid: vmid,
consoleType: 'lxc',
nodename: nodename
});
}
me.items.push(
{
title: gettext('Resources'),
itemId: 'resources',
expandedOnInit: true,
iconCls: 'fa fa-cube',
xtype: 'pveLxcRessourceView'
},
{
title: gettext('Network'),
iconCls: 'fa fa-exchange',
itemId: 'network',
xtype: 'pveLxcNetworkView'
},
{
title: gettext('DNS'),
iconCls: 'fa fa-globe',
itemId: 'dns',
xtype: 'pveLxcDNS'
},
{
title: gettext('Options'),
itemId: 'options',
iconCls: 'fa fa-gear',
xtype: 'pveLxcOptions'
},
{
title: gettext('Task History'),
itemId: 'tasks',
iconCls: 'fa fa-list',
xtype: 'pveNodeTasks',
vmidFilter: vmid
}
);
if (caps.vms['VM.Backup']) {
me.items.push({
title: gettext('Backup'),
@ -179,19 +191,6 @@ Ext.define('PVE.lxc.Config', {
});
}
if (caps.vms['VM.Console']) {
me.items.push({
title: gettext('Console'),
itemId: 'console',
groups: ['system'],
iconCls: 'fa fa-terminal',
xtype: 'pveNoVncConsole',
vmid: vmid,
consoleType: 'lxc',
nodename: nodename
});
}
if (caps.vms['VM.Snapshot']) {
me.items.push({
title: gettext('Snapshots'),