[pbs-devel] [PATCH widget-toolkit v3 03/14] window: add panel for editing simple, built-in realms

Gabriel Goller g.goller at proxmox.com
Fri Aug 16 14:23:39 CEST 2024


On 16.08.2024 13:16, Christoph Heiss wrote:
>diff --git a/src/window/AuthEditSimple.js b/src/window/AuthEditSimple.js
>new file mode 100644
>index 0000000..22932c0
>--- /dev/null
>+++ b/src/window/AuthEditSimple.js
>@@ -0,0 +1,41 @@
>+Ext.define('Proxmox.panel.SimpleRealmInputPanel', {
>+    extend: 'Proxmox.panel.InputPanel',
>+    xtype: 'pmxAuthSimplePanel',
>+    mixins: ['Proxmox.Mixin.CBind'],
>+
>+    type: 'simple',
>+
>+    column1: [
>+	{
>+	    xtype: 'pmxDisplayEditField',
>+	    name: 'realm',
>+	    cbind: {
>+		value: '{realm}',
>+	    },
>+	    fieldLabel: gettext('Realm'),
>+	    allowBlank: false,

Hmm I think `allowBlank` is useless here, as it's not editable.

>+	},
>+	{
>+	    xtype: 'proxmoxcheckbox',
>+	    fieldLabel: gettext('Default realm'),
>+	    name: 'default',
>+	    value: 0,
>+	    autoEl: {
>+		tag: 'div',
>+		'data-qtip': gettext('Set realm as default for login'),
>+	    },
>+	},
>+    ],
>+
>+    column2: [
>+    ],
>+
>+    columnB: [
>+	{
>+	    xtype: 'proxmoxtextfield',
>+	    name: 'comment',
>+	    fieldLabel: gettext('Comment'),

But here `allowBlank: false` would be useful!

>+	},
>+    ],
>+});
>+
>-- 
>2.45.2
>
>
>
>_______________________________________________
>pbs-devel mailing list
>pbs-devel at lists.proxmox.com
>https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
>
>




More information about the pbs-devel mailing list