]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/dc/AuthEditBase.js
ui: realm: clarify that the sync jobs really are for the realm
[pve-manager.git] / www / manager6 / dc / AuthEditBase.js
index f07052a03fb98e5e101083e02eb4ae3caaa44624..e18fbc3b9016e5caab2f8050e2cf5837f3fdacfd 100644 (file)
@@ -24,6 +24,8 @@ Ext.define('PVE.panel.AuthBase', {
     initComponent: function() {
        let me = this;
 
+       let options = PVE.Utils.authSchema[me.type];
+
        if (!me.column1) { me.column1 = []; }
        if (!me.column2) { me.column2 = []; }
        if (!me.columnB) { me.columnB = []; }
@@ -45,11 +47,13 @@ Ext.define('PVE.panel.AuthBase', {
            uncheckedValue: 0,
        });
 
-       // last field of column2is tfa
-       me.column2.push({
-           xtype: 'pveTFASelector',
-           deleteEmpty: !me.isCreate,
-       });
+       if (options.tfa) {
+           // last field of column2is tfa
+           me.column2.push({
+               xtype: 'pveTFASelector',
+               deleteEmpty: !me.isCreate,
+           });
+       }
 
        me.columnB.push({
            xtype: 'textfield',