ui: user view: adapt to users response API changes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2021-07-02 15:15:31 +02:00
parent a901e4adc3
commit c0e3df11d8

View File

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