[pve-devel] [RFC manager 3/5] GUI: QEMU Hardware: add comment column

Matthias Heiserer m.heiserer at proxmox.com
Mon Feb 14 15:01:42 CET 2022


Adds a column in which comments can be displayed.
This column is to the right of the values column.

Signed-off-by: Matthias Heiserer <m.heiserer at proxmox.com>
---
 www/manager6/qemu/HardwareView.js | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/www/manager6/qemu/HardwareView.js b/www/manager6/qemu/HardwareView.js
index 6cea4287..60d662d5 100644
--- a/www/manager6/qemu/HardwareView.js
+++ b/www/manager6/qemu/HardwareView.js
@@ -787,6 +787,29 @@ Ext.define('PVE.qemu.HardwareView', {
 	    },
 	});
 
+	Ext.applyIf(me, {
+		columns: [
+		    {
+			header: gettext('Name'),
+			width: me.cwidth1 || 200,
+			dataIndex: 'key',
+			renderer: me.renderKey,
+		    },
+		    {
+			flex: 1,
+			header: gettext('Value'),
+			dataIndex: 'value',
+			renderer: PVE.Utils.renderValueWithoutComment(me),
+		    }, {
+			header: gettext('Comment'),
+			flex: 1,
+			dataIndex: 'comment',
+			renderer: PVE.Utils.renderComment,
+		    },
+		],
+	    });
+
+
 	me.callParent();
 
 	me.on('activate', me.rstore.startUpdate, me.rstore);
-- 
2.30.2






More information about the pve-devel mailing list