]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: user view: disable 'Unlock TFA' button by default
authorChristoph Heiss <c.heiss@proxmox.com>
Thu, 22 Aug 2024 11:08:36 +0000 (13:08 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 29 Aug 2024 12:11:46 +0000 (14:11 +0200)
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@proxmox.com>
www/config/UserView.js

index 19dce06f9e06d2aa90353e5849c81b6c87859e24..812cad390158d599dd95d51af90b671960730781 100644 (file)
@@ -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)),
        },