public inbox for pmg-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Hannes Laimer <h.laimer@proxmox.com>
To: pmg-devel@lists.proxmox.com
Subject: [pmg-devel] [PATCH pmg-gui] ui: allow 'info' field to be shown in object lists
Date: Fri,  9 Aug 2024 07:49:28 +0200	[thread overview]
Message-ID: <20240809054928.7427-1-h.laimer@proxmox.com> (raw)

Signed-off-by: Hannes Laimer <h.laimer@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



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


                 reply	other threads:[~2024-08-09  5:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240809054928.7427-1-h.laimer@proxmox.com \
    --to=h.laimer@proxmox.com \
    --cc=pmg-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal