5
0
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:
Thomas Lamprecht 2023-06-26 19:55:52 +02:00
parent c724c00667
commit 988a177da8

View File

@ -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)),
},
],