diff --git a/client/src/components/inputs/SwitchSettings.tsx b/client/src/components/inputs/SwitchSettings.tsx index 50fb44364..b6bca4cd2 100644 --- a/client/src/components/inputs/SwitchSettings.tsx +++ b/client/src/components/inputs/SwitchSettings.tsx @@ -66,11 +66,6 @@ export const SettingsSwitch = () => { [perms] ); - console.log("ENV VAR: ", ENV_VAR); - console.log("DEPLOYMENT_MODE: ", DEPLOYMENT_MODE); - console.log("Show billing: ", showBilling); - console.log(JSON.stringify(perms, null, 2)); - console.log("IS_SAAS: ", IS_SAAS); const hasMaster = perms.includes("master"); diff --git a/client/src/components/layouts/RootLayout.tsx b/client/src/components/layouts/RootLayout.tsx index 1bc832881..7a58292cc 100644 --- a/client/src/components/layouts/RootLayout.tsx +++ b/client/src/components/layouts/RootLayout.tsx @@ -11,10 +11,10 @@ const RootLayout = () => { { const { t } = useTranslation(); const theme = useTheme(); - const navigate = useNavigate(); + const dispatch = useAppDispatch(); + const isOpen = useAppSelector((state) => state.ui.sidebarOpen); return ( navigate("/")} + onClick={() => { + dispatch(setSidebarOpen(!isOpen)); + }} sx={{ cursor: "pointer" }} > { backgroundColor: theme.palette.background.paper, }} > - + {/* Sidebar collapse handled by Logo click */} - { height: "100%", }} > + {menu.map((item) => { const selected = location.pathname.startsWith(`/${item.path}`); return ( diff --git a/client/src/locales/en.json b/client/src/locales/en.json index c62a84e65..4de440df8 100644 --- a/client/src/locales/en.json +++ b/client/src/locales/en.json @@ -243,7 +243,7 @@ "cpuUsage": "CPU usage", "createA": "Create a", "createMaintenance": "Create maintenance", - "createMaintenanceWindow": "Create maintenance window", + "createMaintenanceWindow": "Create window", "createMaintenanceWindowPage": { "generalSettingsTitle": "General settings", "generalSettingsDescription": "General maintenance window settings", diff --git a/client/src/pages/infrastructure/InfraConfig.tsx b/client/src/pages/infrastructure/InfraConfig.tsx index 7eb873387..0cd3a4e20 100644 --- a/client/src/pages/infrastructure/InfraConfig.tsx +++ b/client/src/pages/infrastructure/InfraConfig.tsx @@ -41,7 +41,6 @@ const InfraConfigurePage = () => { interval, }; - console.log(JSON.stringify(submitData, null, 2)); const result = await patch(`/monitors/${id}`, submitData); if (result) { diff --git a/client/src/pages/infrastructure/InfraMonitorsTable.tsx b/client/src/pages/infrastructure/InfraMonitorsTable.tsx index 02a5f504f..59e598d96 100644 --- a/client/src/pages/infrastructure/InfraMonitorsTable.tsx +++ b/client/src/pages/infrastructure/InfraMonitorsTable.tsx @@ -115,7 +115,7 @@ export const InfraMonitorsTable = ({ // id: 5, // label: "Clone", // action: () => { - // console.log("Open clone"); + // }, // }, { diff --git a/client/src/pages/notification-channels/NotificationChannels.tsx b/client/src/pages/notification-channels/NotificationChannels.tsx index 0f911e176..c479a4869 100644 --- a/client/src/pages/notification-channels/NotificationChannels.tsx +++ b/client/src/pages/notification-channels/NotificationChannels.tsx @@ -129,7 +129,7 @@ const NotificationChannelsPage = () => { loading={isValidating} error={error} items={notificationChannels} - actionButtonText="Create a new notification channel" + actionButtonText="Create a channel" actionLink="/notification-channels/create" > { - // console.log("Open clone"); + // }, // }, { diff --git a/client/src/pages/uptime/MonitorTable.tsx b/client/src/pages/uptime/MonitorTable.tsx index fde4621d7..436b0a822 100644 --- a/client/src/pages/uptime/MonitorTable.tsx +++ b/client/src/pages/uptime/MonitorTable.tsx @@ -116,7 +116,7 @@ export const MonitorTable = ({ // id: 5, // label: "Clone", // action: () => { - // console.log("Open clone"); + // }, // }, {