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,35 +131,48 @@ Ext.define('PVE.lxc.Config', {
xtype: 'pveLxcSummary', xtype: 'pveLxcSummary',
iconCls: 'fa fa-book', iconCls: 'fa fa-book',
itemId: 'summary' itemId: 'summary'
}, }
]
});
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('System'), title: gettext('Resources'),
itemId: 'system', itemId: 'resources',
expandedOnInit: true, expandedOnInit: true,
iconCls: 'fa fa-cube', iconCls: 'fa fa-cube',
xtype: 'pveLxcRessourceView' xtype: 'pveLxcRessourceView'
}, },
{
title: gettext('Options'),
itemId: 'options',
groups: ['system'],
iconCls: 'fa fa-gear',
xtype: 'pveLxcOptions'
},
{ {
title: gettext('Network'), title: gettext('Network'),
iconCls: 'fa fa-exchange', iconCls: 'fa fa-exchange',
itemId: 'network', itemId: 'network',
groups:['system'],
xtype: 'pveLxcNetworkView' xtype: 'pveLxcNetworkView'
}, },
{ {
title: gettext('DNS'), title: gettext('DNS'),
groups: ['system'],
iconCls: 'fa fa-globe', iconCls: 'fa fa-globe',
itemId: 'dns', itemId: 'dns',
xtype: 'pveLxcDNS' xtype: 'pveLxcDNS'
}, },
{
title: gettext('Options'),
itemId: 'options',
iconCls: 'fa fa-gear',
xtype: 'pveLxcOptions'
},
{ {
title: gettext('Task History'), title: gettext('Task History'),
itemId: 'tasks', itemId: 'tasks',
@ -167,8 +180,7 @@ Ext.define('PVE.lxc.Config', {
xtype: 'pveNodeTasks', xtype: 'pveNodeTasks',
vmidFilter: vmid vmidFilter: vmid
} }
] );
});
if (caps.vms['VM.Backup']) { if (caps.vms['VM.Backup']) {
me.items.push({ me.items.push({
@ -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']) { if (caps.vms['VM.Snapshot']) {
me.items.push({ me.items.push({
title: gettext('Snapshots'), title: gettext('Snapshots'),