[pve-devel] [PATCH manager 2/4] show usb devices in qemu hardware view

Dominik Csapak d.csapak at proxmox.com
Mon May 29 10:46:32 CEST 2017


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

diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index 451ce38d..a432d39e 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -209,9 +209,18 @@ Ext.define('PVE.qemu.HardwareView', {
 	    never_delete: caps.vms['VM.Config.Disk'] ? false : true,
 	    header: gettext('EFI Disk')
 	};
+	for (i = 0; i < 5; i++) {
+	    confid = "usb" + i;
+	    rows[confid] = {
+		group: 4,
+		tdCls: 'pve-itype-icon-usb',
+		never_delete: true,
+		header: gettext('USB Device') + ' (' + confid + ')'
+	    };
+	}
 	for (i = 0; i < 8; i++) {
 	    rows["unused" + i] = {
-		group: 4,
+		group: 5,
 		tdCls: 'pve-itype-icon-storage',
 		editor: caps.vms['VM.Config.Disk'] ? 'PVE.qemu.HDEdit' : undefined,
 		header: gettext('Unused Disk') + ' ' + i
@@ -550,7 +559,7 @@ Ext.define('PVE.qemu.HardwareView', {
 			    efidisk_menuitem
 			]
 		    })
-		}, 
+		},
 		remove_btn,
 		edit_btn,
 		resize_btn,
-- 
2.11.0





More information about the pve-devel mailing list