Update Breadcrumbs to include dynamic path for configuration page
This commit is contained in:
1 parent
9b63016d56
commit
a7fa3ccb77
2 files changed
+7
-5
No files matched your search
@@ -69,7 +69,7 @@ const CreateStatusPage = () => {
|
||||
} else {
|
||||
crumbs.push(
|
||||
{ name: t("statusBredCrumbsDetails"), path: `/status/uptime/${statusPage?.url}` },
|
||||
{ name: t("configure"), path: "" }
|
||||
{ name: t("configure"), path: `/status/uptime/configure/${statusPage?.url}` }
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -29,14 +29,16 @@ const PublicStatus = () => {
|
||||
const { t } = useTranslation();
|
||||
const location = useLocation();
|
||||
const navigate = useNavigate();
|
||||
const crumbs = [
|
||||
{ name: t("statusBredCrumbsStatusPages"), path: "/status" },
|
||||
{ name: t("statusBredCrumbsDetails"), path: "" },
|
||||
];
|
||||
|
||||
const [statusPage, monitors, isLoading, networkError, fetchStatusPage] =
|
||||
useStatusPageFetch(false, url);
|
||||
const [deleteStatusPage, isDeleting] = useStatusPageDelete(fetchStatusPage, url);
|
||||
|
||||
// Breadcrumbs
|
||||
const crumbs = [
|
||||
{ name: t("statusBredCrumbsStatusPages"), path: "/status" },
|
||||
{ name: t("statusBredCrumbsDetails"), path: `/status/uptime/${statusPage?.url}` },
|
||||
];
|
||||
|
||||
// Setup
|
||||
let sx = { paddingLeft: theme.spacing(20), paddingRight: theme.spacing(20) };
|
||||
|
||||
Reference in new issue
Block a user