]> git.proxmox.com Git - proxmox-backup.git/commitdiff
gui: add load mask during webauthn api calls
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Fri, 8 Jan 2021 10:54:12 +0000 (11:54 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 11 Jan 2021 09:23:13 +0000 (10:23 +0100)
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>
www/window/AddWebauthn.js

index 2c64dd0c939efd8095ecf5da383b4720d007a088..7c5489e39723fc02d87235e58ac0672c72d168c3 100644 (file)
@@ -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}`,