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

Dominik Csapak d.csapak at proxmox.com
Tue Feb 11 10:01:31 CET 2020


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);
 			}
 		    });
 
-- 
2.20.1





More information about the pve-devel mailing list