mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-30 21:55:07 +00:00
acme domains: fix ui-reload gettext + code cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
08d092b679
commit
c5cade500a
@ -206,12 +206,13 @@ Ext.define('Proxmox.panel.ACMEDomains', {
|
||||
|
||||
orderFinished: function(success, cert) {
|
||||
if (!success || !cert.reloadUi) return;
|
||||
var txt = gettext('gui will be restarted with new certificates, please reload!');
|
||||
Ext.getBody().mask(txt, ['x-mask-loading']);
|
||||
// reload after 10 seconds automatically
|
||||
Ext.defer(function() {
|
||||
window.location.reload(true);
|
||||
}, 10000);
|
||||
|
||||
Ext.getBody().mask(
|
||||
gettext('API server will be restarted to use new certificates, please reload web-interface!'),
|
||||
['pve-static-mask'],
|
||||
);
|
||||
// try to reload after 10 seconds automatically
|
||||
Ext.defer(() => window.location.reload(true), 10000);
|
||||
},
|
||||
|
||||
reload: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user