[pve-devel] [PATCH manager 4/4] ui: tfa: set initial tab based on current tfa type

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Apr 11 11:32:02 CEST 2019


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 www/manager6/dc/TFAEdit.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/manager6/dc/TFAEdit.js b/www/manager6/dc/TFAEdit.js
index 49c39b4e..021fc2a3 100644
--- a/www/manager6/dc/TFAEdit.js
+++ b/www/manager6/dc/TFAEdit.js
@@ -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 at pam') {
@@ -313,6 +316,7 @@ Ext.define('PVE.window.TFAEdit', {
 	{
 	    xtype: 'tabpanel',
 	    itemId: 'tfatabs',
+	    reference: 'tfatabs',
 	    border: false,
 	    items: [
 		{
-- 
2.11.0





More information about the pve-devel mailing list