Merge pull request #2308 from bluewave-labs/Incident-button-on-details-page

Added incidents page in the details header.
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-05-19 11:18:23 -07:00
commit d07063b21b
1 file changed
+10 -1
@@ -5,7 +5,7 @@ import Button from "@mui/material/Button";
import SettingsOutlinedIcon from "@mui/icons-material/SettingsOutlined"; import SettingsOutlinedIcon from "@mui/icons-material/SettingsOutlined";
import PauseOutlinedIcon from "@mui/icons-material/PauseOutlined"; import PauseOutlinedIcon from "@mui/icons-material/PauseOutlined";
import PlayArrowOutlinedIcon from "@mui/icons-material/PlayArrowOutlined"; import PlayArrowOutlinedIcon from "@mui/icons-material/PlayArrowOutlined";
import EmailIcon from '@mui/icons-material/Email'; import EmailIcon from "@mui/icons-material/Email";
// Utils // Utils
import PropTypes from "prop-types"; import PropTypes from "prop-types";
@@ -69,6 +69,15 @@ const MonitorDetailsControlHeader = ({
> >
{t("sendTestEmail")} {t("sendTestEmail")}
</Button> </Button>
<Button
variant="contained"
color="secondary"
onClick={(e) => {
navigate(`/incidents/${monitor?._id}`);
}}
>
{t("menu.incidents")}
</Button>
<Button <Button
variant="contained" variant="contained"
color="secondary" color="secondary"