]> git.proxmox.com Git - pve-manager.git/commitdiff
ui: user view: adapt to users response API changes
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 13:15:31 +0000 (15:15 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 2 Jul 2021 13:15:31 +0000 (15:15 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/UserView.js

index 957b772459b16a5957421ff107f9306a39b5d180..2d8bc7a4d4dfaa9702c99426d9f6261e965601bb 100644 (file)
@@ -59,8 +59,8 @@ Ext.define('PVE.dc.UserView', {
            disabled: true,
            selModel: sm,
            enableFn: function(record) {
-               if (record.data.realmtype) {
-                   let type = record.data.realmtype;
+               let type = record.data['realm-type'];
+               if (type) {
                    if (PVE.Utils.authSchema[type]) {
                        return !!PVE.Utils.authSchema[type].pwchange;
                    }
@@ -82,8 +82,8 @@ Ext.define('PVE.dc.UserView', {
            disabled: true,
            selModel: sm,
            enableFn: function(record) {
-               if (record.data.realmtype) {
-                   let type = record.data.realmtype;
+               let type = record.data['realm-type'];
+               if (type) {
                    if (PVE.Utils.authSchema[type]) {
                        return !!PVE.Utils.authSchema[type].tfa;
                    }