Merge pull request #2327 from AsimAhmedSiddiquii/fix-show-ip-url-status-page

Fix: Optionally show IP/URL of the monitor in status page
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-05-26 08:32:47 -07:00
commit a18a62f80e
11 files changed
+96 -8

No files matched your search

@@ -8,9 +8,15 @@ import { StatusLabel } from "../../../../../Components/Label";
import { useTheme } from "@mui/material/styles";
import useUtils from "../../../../Uptime/Monitors/Hooks/useUtils";
import PropTypes from "prop-types";
import { useSelector } from "react-redux";
const MonitorsList = ({ isLoading = false, shouldRender = true, monitors = [] }) => {
const theme = useTheme();
const { determineState } = useUtils();
const { showURL } = useSelector((state) => state.ui);
return (
<>
{monitors?.map((monitor) => {
@@ -27,6 +33,7 @@ const MonitorsList = ({ isLoading = false, shouldRender = true, monitors = [] })
title={monitor.name}
percentageColor={monitor.percentageColor}
percentage={monitor.percentage}
showURL={showURL}
/>
<Stack
direction="row"
@@ -19,6 +19,7 @@ import { useState } from "react";
import { useParams } from "react-router-dom";
import { useNavigate } from "react-router-dom";
import { useTranslation } from "react-i18next";
const PublicStatus = () => {
const { url } = useParams();