From 758a827c2de582bed9664f3ccbc807c5fd141c25 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 8 Jan 2021 11:54:12 +0100 Subject: [PATCH] gui: add load mask during webauthn api calls so that if we run into the 3s delay due to the wrong password the window is properly masked Signed-off-by: Wolfgang Bumiller --- www/window/AddWebauthn.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/window/AddWebauthn.js b/www/window/AddWebauthn.js index 2c64dd0c..7c5489e3 100644 --- a/www/window/AddWebauthn.js +++ b/www/window/AddWebauthn.js @@ -58,6 +58,8 @@ Ext.define('PBS.window.AddWebauthn', { let userid = values.user; delete values.user; + me.getView().mask(gettext('Please wait...'), 'x-mask-loading'); + try { let register_response = await PBS.Async.api2({ url: `/api2/extjs/access/tfa/${userid}`,