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 = []; }
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',
Ext.define('PVE.dc.AuthEditBase', {
extend: 'Proxmox.window.Edit',
+ onlineHelp: 'pveum_authentication_realms',
+
isAdd: true,
fieldDefaults: {