[pve-devel] [RFC PATCH manager 4/5] add efidisk to qemu hardwareview

Dominik Csapak d.csapak at proxmox.com
Mon Sep 12 12:02:37 CEST 2016


this shows an active efidisk above
unused disks, without an editor (because there are no options)

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/qemu/HardwareView.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index 3ed80ff..4b19e00 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -197,9 +197,16 @@ Ext.define('PVE.qemu.HardwareView', {
 		header: gettext('Network Device') + ' (' + confid +')'
 	    };
 	}
+	rows.efidisk0 = {
+	    group: 3,
+	    tdCls: 'pve-itype-icon-storage',
+	    editor: null,
+	    never_delete: caps.vms['VM.Config.Disk'] ? false : true,
+	    header: gettext('EFI Disk')
+	};
 	for (i = 0; i < 8; i++) {
 	    rows["unused" + i] = {
-		group: 3,
+		group: 4,
 		tdCls: 'pve-itype-icon-storage',
 		editor: caps.vms['VM.Config.Disk'] ? 'PVE.qemu.HDEdit' : undefined,
 		header: gettext('Unused Disk') + ' ' + i
-- 
2.1.4




More information about the pve-devel mailing list