#10153 refresh visual console maintenanceMode
This commit is contained in:
parent
be6c3e1602
commit
b48cd3ff73
|
@ -117,11 +117,13 @@ function createVisualConsole(
|
|||
visualConsole.updateElements(items);
|
||||
}
|
||||
|
||||
if (window.location.pathname.indexOf("index.php") == 0) {
|
||||
if (visualConsole.props.maintenanceMode != null) {
|
||||
visualConsole.enableMaintenanceMode();
|
||||
} else {
|
||||
visualConsole.disableMaintenanceMode();
|
||||
}
|
||||
}
|
||||
|
||||
// Emit the VC update event.
|
||||
if (onUpdate) onUpdate(prevProps, visualConsole.props);
|
||||
|
|
Loading…
Reference in New Issue