#10153 refresh visual console maintenanceMode

This commit is contained in:
Jonathan 2023-01-30 10:48:10 +01:00
parent be6c3e1602
commit b48cd3ff73
1 changed files with 6 additions and 4 deletions

View File

@ -117,10 +117,12 @@ function createVisualConsole(
visualConsole.updateElements(items);
}
if (visualConsole.props.maintenanceMode != null) {
visualConsole.enableMaintenanceMode();
} else {
visualConsole.disableMaintenanceMode();
if (window.location.pathname.indexOf("index.php") == 0) {
if (visualConsole.props.maintenanceMode != null) {
visualConsole.enableMaintenanceMode();
} else {
visualConsole.disableMaintenanceMode();
}
}
// Emit the VC update event.