]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
partially rever qemu gui structure
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 1 Sep 2016 09:19:09 +0000 (11:19 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 1 Sep 2016 09:43:59 +0000 (11:43 +0200)
this restores the structure of the qemu options
and moves the console to the second position

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/qemu/Config.js

index 32ace7af942701bd420c32e51d383bd60030a889..9a20fe33e36d424cc3722b9d227d2476c54143ce 100644 (file)
@@ -140,35 +140,47 @@ Ext.define('PVE.qemu.Config', {
                    xtype: 'pveQemuSummary',
                    iconCls: 'fa fa-book',
                    itemId: 'summary'
-               },
-               {
-                   title: gettext('System'),
-                   itemId: 'system',
-                   expandedOnInit: true,
-                   iconCls: 'fa fa-desktop',
-                   xtype: 'PVE.qemu.HardwareView'
-               },
-               {
-                   title: gettext('Options'),
-                   groups: ['system'],
-                   iconCls: 'fa fa-gear',
-                   itemId: 'options',
-                   xtype: 'PVE.qemu.Options'
-               },
-               {
-                   title: gettext('Task History'),
-                   itemId: 'tasks',
-                   xtype: 'pveNodeTasks',
-                   iconCls: 'fa fa-list',
-                   vmidFilter: vmid
                }
            ]
        });
 
+       if (caps.vms['VM.Console'] && !template) {
+           me.items.push({
+               title: gettext('Console'),
+               itemId: 'console',
+               iconCls: 'fa fa-terminal',
+               xtype: 'pveNoVncConsole',
+               vmid: vmid,
+               consoleType: 'kvm',
+               nodename: nodename
+           });
+       }
+
+       me.items.push(
+           {
+               title: gettext('Hardware'),
+               itemId: 'hardware',
+               iconCls: 'fa fa-desktop',
+               xtype: 'PVE.qemu.HardwareView'
+           },
+           {
+               title: gettext('Options'),
+               iconCls: 'fa fa-gear',
+               itemId: 'options',
+               xtype: 'PVE.qemu.Options'
+           },
+           {
+               title: gettext('Task History'),
+               itemId: 'tasks',
+               xtype: 'pveNodeTasks',
+               iconCls: 'fa fa-list',
+               vmidFilter: vmid
+           }
+       );
+
        if (caps.vms['VM.Monitor'] && !template) {
            me.items.push({
                title: gettext('Monitor'),
-               groups: ['system'],
                iconCls: 'fa fa-eye',
                itemId: 'monitor',
                xtype: 'pveQemuMonitor'
@@ -193,19 +205,6 @@ Ext.define('PVE.qemu.Config', {
            });
        }
 
-       if (caps.vms['VM.Console'] && !template) {
-           me.items.push({
-               title: gettext('Console'),
-               itemId: 'console',
-               iconCls: 'fa fa-terminal',
-               groups: ['system'],
-               xtype: 'pveNoVncConsole',
-               vmid: vmid,
-               consoleType: 'kvm',
-               nodename: nodename
-           });
-       }
-
        if (caps.vms['VM.Console']) {
            me.items.push(
                {