[pve-devel] [PATCH manager 1/4] partially revert lxc gui structure

Dominik Csapak d.csapak at proxmox.com
Thu Sep 1 11:19:08 CEST 2016


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 at proxmox.com>
---
 www/manager6/lxc/Config.js | 89 +++++++++++++++++++++++-----------------------
 1 file changed, 44 insertions(+), 45 deletions(-)

diff --git a/www/manager6/lxc/Config.js b/www/manager6/lxc/Config.js
index 25733cc..92cb378 100644
--- a/www/manager6/lxc/Config.js
+++ b/www/manager6/lxc/Config.js
@@ -131,59 +131,14 @@ 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.Backup']) {
-	    me.items.push({
-		title: gettext('Backup'),
-		iconCls: 'fa fa-floppy-o',
-		xtype: 'pveBackupView',
-		itemId: 'backup'
-	    });
-	}
-
 	if (caps.vms['VM.Console']) {
 	    me.items.push({
 		title: gettext('Console'),
 		itemId: 'console',
-		groups: ['system'],
 		iconCls: 'fa fa-terminal',
 		xtype: 'pveNoVncConsole',
 		vmid: vmid,
@@ -192,6 +147,50 @@ Ext.define('PVE.lxc.Config', {
 	    });
 	}
 
+	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'),
+		iconCls: 'fa fa-floppy-o',
+		xtype: 'pveBackupView',
+		itemId: 'backup'
+	    });
+	}
+
 	if (caps.vms['VM.Snapshot']) {
 	    me.items.push({
 		title: gettext('Snapshots'),
-- 
2.1.4




More information about the pve-devel mailing list