gui: masks for: adding recovery and removals
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
1 parent
758a827c2d
commit
63fd8e58b2
2 files changed
+8
-3
No files matched your search
@@ -161,6 +161,7 @@ Ext.define('PBS.config.TfaView', {
|
||||
}
|
||||
|
||||
try {
|
||||
me.getView().mask(gettext('Please wait...'), 'x-mask-loading');
|
||||
await PBS.Async.api2({
|
||||
url: `/api2/extjs/access/tfa/${record.id}`,
|
||||
method: 'DELETE',
|
||||
@@ -169,7 +170,9 @@ Ext.define('PBS.config.TfaView', {
|
||||
me.reload();
|
||||
} catch (error) {
|
||||
Ext.Msg.alert(gettext('Error'), error);
|
||||
}
|
||||
} finally {
|
||||
me.getView().unmask();
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user