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.heise...@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



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to