[pbs-devel] [PATCH widget-toolkit 5/6] fix #5379: panel: AuthView: add column displaying whether the realm is default

Christoph Heiss c.heiss at proxmox.com
Tue Jul 16 15:45:04 CEST 2024


Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
 src/panel/AuthView.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/panel/AuthView.js b/src/panel/AuthView.js
index 944a812..128d863 100644
--- a/src/panel/AuthView.js
+++ b/src/panel/AuthView.js
@@ -25,6 +25,13 @@ Ext.define('Proxmox.panel.AuthView', {
 	    sortable: true,
 	    dataIndex: 'type',
 	},
+	{
+	    header: gettext('Default'),
+	    width: 80,
+	    sortable: true,
+	    dataIndex: 'default',
+	    renderer: isDefault => isDefault ? Proxmox.Utils.renderEnabledIcon(true) : '',
+	},
 	{
 	    header: gettext('Comment'),
 	    sortable: false,
-- 
2.45.1





More information about the pbs-devel mailing list