[pbs-devel] [PATCH proxmox-backup] ui: user view: disable 'Unlock TFA' button by default
Christoph Heiss
c.heiss at proxmox.com
Thu Aug 22 13:08:36 CEST 2024
Without this, the button is enabled if no entry at all is selected (e.g.
when switching to the 'User Management' tab), with the button then
(obviously) being a noop.
Signed-off-by: Christoph Heiss <c.heiss at proxmox.com>
---
www/config/UserView.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/www/config/UserView.js b/www/config/UserView.js
index 19dce06f..812cad39 100644
--- a/www/config/UserView.js
+++ b/www/config/UserView.js
@@ -186,6 +186,7 @@ Ext.define('PBS.config.UserView', {
xtype: 'proxmoxButton',
text: gettext('Unlock TFA'),
handler: 'unlockTfa',
+ disabled: true,
enableFn: ({ data }) =>
data['totp-locked'] || (data['tfa-locked-until'] > (new Date().getTime() / 1000)),
},
--
2.45.2
More information about the pbs-devel
mailing list