]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: user view: fix eslint error
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Jun 2023 17:55:52 +0000 (19:55 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 26 Jun 2023 18:09:06 +0000 (20:09 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/config/UserView.js

index e851603f7d0202034503e0c89aee282d791e42ea..5a5b2f4eeac039ce21650354f0eb83e357bf1195 100644 (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)),
        },
     ],