add check for distributed uptime public url

This commit is contained in:
Alex Holliday
2025-02-07 15:19:24 -08:00
parent e480019dea
commit f3266e22e7
2 changed files with 7 additions and 0 deletions

View File

@@ -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 (
<Stack
direction="row"

View File

@@ -32,6 +32,7 @@ const PublicStatus = () => {
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 = {