ui: tfa: set initial tab based on current tfa type

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-04-11 11:32:02 +02:00 committed by Thomas Lamprecht
parent ac3daab801
commit 1b16f7138b

View File

@ -174,6 +174,9 @@ Ext.define('PVE.window.TFAEdit', {
me.down('#qrbox').setVisible(false);
me.lookup('challenge').setVisible(false);
this.updatePanelMask(me.down('#totp-panel'));
if (me.tfa_type === 'u2f') {
me.lookup('tfatabs').setActiveTab(me.lookup('u2f_panel'));
}
}
if (Proxmox.UserName === 'root@pam') {
@ -313,6 +316,7 @@ Ext.define('PVE.window.TFAEdit', {
{
xtype: 'tabpanel',
itemId: 'tfatabs',
reference: 'tfatabs',
border: false,
items: [
{