]>
git.proxmox.com Git - proxmox-backup.git/commitdiff
projects
/
proxmox-backup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9152ee
)
ui: user view: disable 'Unlock TFA' button by default
author
Christoph Heiss
<c.heiss@proxmox.com>
Thu, 22 Aug 2024 11:08:36 +0000
(13:08 +0200)
committer
Wolfgang 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
patch
|
blob
|
blame
|
history
diff --git
a/www/config/UserView.js
b/www/config/UserView.js
index 19dce06f9e06d2aa90353e5849c81b6c87859e24..812cad390158d599dd95d51af90b671960730781 100644
(file)
--- 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)),
},