diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js index 25733cc0..92cb3787 100644 --- a/www/manager6/lxc/Config.js +++ b/www/manager6/lxc/Config.js @@ -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'),