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

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Apr 16 10:09:35 CEST 2019


On 4/11/19 11:32 AM, Wolfgang Bumiller wrote:
> 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: [
>  		{
> 

applied, thanks!




More information about the pve-devel mailing list