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