[pve-devel] applied: [PATCH manager v2 2/2] gui: dc/TFAEdit: show an error message if tfa api call fails

Thomas Lamprecht t.lamprecht at proxmox.com
Tue Feb 11 19:02:12 CET 2020


On 2/11/20 10:01 AM, Dominik Csapak wrote:
> setting the loadmask did not really work, so show a messagebox instead
> and close the window
> 
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
> new in v2
>  www/manager6/dc/TFAEdit.js | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/www/manager6/dc/TFAEdit.js b/www/manager6/dc/TFAEdit.js
> index f8afa0a5..bf51b8c9 100644
> --- a/www/manager6/dc/TFAEdit.js
> +++ b/www/manager6/dc/TFAEdit.js
> @@ -205,7 +205,8 @@ Ext.define('PVE.window.TFAEdit', {
>  			    me.afterLoading(data.realm, data.user);
>  			},
>  			failure: function(response, opts) {
> -			    Proxmox.Utils.setErrorMask(loadMaskContainer, response.htmlStatus);
> +			    me.close();
> +			    Ext.Msg.alert(gettext('Error'), response.htmlStatus);
>  			}
>  		    });
>  
> 

applied, thanks




More information about the pve-devel mailing list