]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
acme domains: fix ui-reload gettext + code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 Mar 2021 14:54:51 +0000 (16:54 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 28 Mar 2021 14:54:51 +0000 (16:54 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/panel/ACMEDomains.js

index 2b6c2042beb4fcf7a0722ba2763f2d7c8e32e640..6cfc5017517e543938641666628c94f43c96968b 100644 (file)
@@ -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() {