[pve-devel] [PATCH widget-toolkit 1/5] password edit: support specifying a hint
Fiona Ebner
f.ebner at proxmox.com
Wed Dec 4 12:37:04 CET 2024
Intended to be used by Proxmox VE to clarify that password changes for
the PAM realm only apply to the local node.
Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---
src/window/PasswordEdit.js | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/window/PasswordEdit.js b/src/window/PasswordEdit.js
index e012a0d..e687de3 100644
--- a/src/window/PasswordEdit.js
+++ b/src/window/PasswordEdit.js
@@ -19,6 +19,8 @@ Ext.define('Proxmox.window.PasswordEdit', {
// allow products to opt-in as their API gains support for this.
confirmCurrentPassword: false,
+ hintHtml: undefined,
+
items: [
{
xtype: 'textfield',
@@ -57,6 +59,17 @@ Ext.define('Proxmox.window.PasswordEdit', {
initialPassField: 'password',
submitValue: false,
},
+ {
+ xtype: 'component',
+ userCls: 'pmx-hint',
+ name: 'password-hint',
+ hidden: true,
+ //padding: '5 1',
+ cbind: {
+ html: '{hintHtml}',
+ hidden: '{!hintHtml}',
+ },
+ },
{
xtype: 'hiddenfield',
name: 'userid',
--
2.39.5
More information about the pve-devel
mailing list