#10153 refresh visual console maintenanceMode

This commit is contained in:
Jonathan 2023-01-30 09:51:12 +01:00
parent ad405722e2
commit be6c3e1602
2 changed files with 2 additions and 7 deletions

View File

@ -1387,9 +1387,7 @@ function dashboardLoadVC(settings) {
);
if (settings.props.maintenanceMode != null) {
if (settings.props.maintenanceMode.user !== settings.id_user) {
visualConsoleManager.visualConsole.enableMaintenanceMode();
}
visualConsoleManager.visualConsole.enableMaintenanceMode();
}
if (settings.mobile_view_orientation_vc === true) {

View File

@ -117,10 +117,7 @@ function createVisualConsole(
visualConsole.updateElements(items);
}
if (
visualConsole.props.maintenanceMode != null &&
visualConsole.props.maintenanceMode.user !== id_user
) {
if (visualConsole.props.maintenanceMode != null) {
visualConsole.enableMaintenanceMode();
} else {
visualConsole.disableMaintenanceMode();