#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); visualConsole.updateElements(items);
} }
if (visualConsole.props.maintenanceMode != null) { if (window.location.pathname.indexOf("index.php") == 0) {
visualConsole.enableMaintenanceMode(); if (visualConsole.props.maintenanceMode != null) {
} else { visualConsole.enableMaintenanceMode();
visualConsole.disableMaintenanceMode(); } else {
visualConsole.disableMaintenanceMode();
}
} }
// Emit the VC update event. // Emit the VC update event.