#10153 refresh visual console maintenanceMode
This commit is contained in:
parent
be6c3e1602
commit
b48cd3ff73
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue