mirror of
git://git.proxmox.com/git/proxmox-backup.git
synced 2025-01-24 02:04:14 +03:00
ui: user view: fix eslint error
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c724c00667
commit
988a177da8
@ -161,10 +161,8 @@ Ext.define('PBS.config.UserView', {
|
||||
xtype: 'proxmoxButton',
|
||||
text: gettext('Unlock TFA'),
|
||||
handler: 'unlockTfa',
|
||||
enableFn: (rec) => {
|
||||
rec.data['totp-locked'] ||
|
||||
(rec.data['tfa-locked-until'] > (new Date().getTime() / 1000))
|
||||
},
|
||||
enableFn: ({ data }) =>
|
||||
data['totp-locked'] || (data['tfa-locked-until'] > (new Date().getTime() / 1000)),
|
||||
},
|
||||
],
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user