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 <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2021-01-08 11:54:12 +01:00
parent 7ad33e8052
commit 758a827c2d

View File

@ -58,6 +58,8 @@ Ext.define('PBS.window.AddWebauthn', {
let userid = values.user; let userid = values.user;
delete values.user; delete values.user;
me.getView().mask(gettext('Please wait...'), 'x-mask-loading');
try { try {
let register_response = await PBS.Async.api2({ let register_response = await PBS.Async.api2({
url: `/api2/extjs/access/tfa/${userid}`, url: `/api2/extjs/access/tfa/${userid}`,