[pmg-devel] [PATCH pmg-gui] ui: allow 'info' field to be shown in object lists

Hannes Laimer h.laimer at proxmox.com
Fri Aug 9 07:49:28 CEST 2024


Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
---
came up in support, and I couldn't think of a good reason to not
have the option to show the description in the list

 js/ObjectGroupList.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/js/ObjectGroupList.js b/js/ObjectGroupList.js
index ab66e92..a2a1ea2 100644
--- a/js/ObjectGroupList.js
+++ b/js/ObjectGroupList.js
@@ -146,6 +146,14 @@ Ext.define('PMG.ObjectGroupList', {
 		    dataIndex: 'name',
 		    renderer: Ext.String.htmlEncode,
 		},
+		{
+		    header: gettext('Description'),
+		    sortable: true,
+		    flex: 1,
+		    dataIndex: 'info',
+		    renderer: Ext.String.htmlEncode,
+		    hidden: true,
+		},
 	    ],
 	    listeners: {
 		itemdblclick: function() {
-- 
2.39.2





More information about the pmg-devel mailing list