add check for distributed uptime public url
This commit is contained in:
1 parent
e480019dea
commit
f3266e22e7
2 files changed
+7
No files matched your search
@@ -14,9 +14,15 @@ const Controls = ({ isDeleteOpen, setIsDeleteOpen, isDeleting }) => {
|
|||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const currentPath = location.pathname;
|
const currentPath = location.pathname;
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
|
||||||
if (currentPath === "/status/public") {
|
if (currentPath === "/status/public") {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (currentPath.startsWith("/distributed-uptime/status/public")) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Stack
|
<Stack
|
||||||
direction="row"
|
direction="row"
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ const PublicStatus = () => {
|
|||||||
const currentPath = location.pathname;
|
const currentPath = location.pathname;
|
||||||
let sx = { paddingLeft: theme.spacing(20), paddingRight: theme.spacing(20) };
|
let sx = { paddingLeft: theme.spacing(20), paddingRight: theme.spacing(20) };
|
||||||
let link = undefined;
|
let link = undefined;
|
||||||
|
|
||||||
// Public status page
|
// Public status page
|
||||||
if (currentPath === "/status/public") {
|
if (currentPath === "/status/public") {
|
||||||
sx = {
|
sx = {
|
||||||
|
|||||||
Reference in new issue
Block a user