]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: user view: fix refresh for totp locked column
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 27 Jun 2023 11:27:07 +0000 (13:27 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 27 Jun 2023 11:30:45 +0000 (13:30 +0200)
by adding the 'totp-locked' column to the model

a diff store can only know if a column has changed if the column is
defined in the model, otherwise it'll only load it the first time
(when the 'load' called on the diff store)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/config/UserView.js

index 9a0a0b2be9584739305a9073d2d0a0bf946f0d9c..62eb0f169a1b766a866e55f8fcf3b3068a8a244e 100644 (file)
@@ -1,7 +1,7 @@
 Ext.define('pmx-users', {
     extend: 'Ext.data.Model',
     fields: [
-       'userid', 'firstname', 'lastname', 'email', 'comment',
+       'userid', 'firstname', 'lastname', 'email', 'comment', 'totp-locked',
        { type: 'boolean', name: 'enable', defaultValue: true },
        { type: 'date', dateFormat: 'timestamp', name: 'expire' },
     ],