From f3266e22e7314670ff9dba471be202bee8f09642 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Fri, 7 Feb 2025 15:19:24 -0800 Subject: [PATCH] add check for distributed uptime public url --- .../StatusPage/Status/Components/ControlsHeader/index.jsx | 6 ++++++ Client/src/Pages/StatusPage/Status/index.jsx | 1 + 2 files changed, 7 insertions(+) diff --git a/Client/src/Pages/StatusPage/Status/Components/ControlsHeader/index.jsx b/Client/src/Pages/StatusPage/Status/Components/ControlsHeader/index.jsx index f07aa19da..113f0bafc 100644 --- a/Client/src/Pages/StatusPage/Status/Components/ControlsHeader/index.jsx +++ b/Client/src/Pages/StatusPage/Status/Components/ControlsHeader/index.jsx @@ -14,9 +14,15 @@ const Controls = ({ isDeleteOpen, setIsDeleteOpen, isDeleting }) => { const location = useLocation(); const currentPath = location.pathname; const navigate = useNavigate(); + if (currentPath === "/status/public") { return null; } + + if (currentPath.startsWith("/distributed-uptime/status/public")) { + return null; + } + return ( { const currentPath = location.pathname; let sx = { paddingLeft: theme.spacing(20), paddingRight: theme.spacing(20) }; let link = undefined; + // Public status page if (currentPath === "/status/public") { sx = {