mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-09 19:09:36 +00:00
fix #4663: Prevent Web UI reload on cert order for other node
While it makes sense to reload the Web UI after ordering a certificate for the same node, it is unnecessary to reload the Web UI when ordering a certificate for a different node. Signed-off-by: Filip Schauer <f.schauer@proxmox.com>
This commit is contained in:
parent
a699b7d896
commit
72cfb3d4a1
@ -523,6 +523,10 @@ Ext.define('PVE.node.ACME', {
|
|||||||
|
|
||||||
orderFinished: function(success) {
|
orderFinished: function(success) {
|
||||||
if (!success) return;
|
if (!success) return;
|
||||||
|
// reload only if the Web UI is open on the same node that the cert was ordered for
|
||||||
|
if (this.getView().nodename !== Proxmox.NodeName) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var txt = gettext('pveproxy will be restarted with new certificates, please reload the GUI!');
|
var txt = gettext('pveproxy will be restarted with new certificates, please reload the GUI!');
|
||||||
Ext.getBody().mask(txt, ['pve-static-mask']);
|
Ext.getBody().mask(txt, ['pve-static-mask']);
|
||||||
// reload after 10 seconds automatically
|
// reload after 10 seconds automatically
|
||||||
|
Loading…
Reference in New Issue
Block a user