mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
feat(frontend): backup jobs page
This commit is contained in:
@@ -42,6 +42,23 @@ export function generateBreadcrumbs(pathname: string, params: Record<string, str
|
||||
return breadcrumbs;
|
||||
}
|
||||
|
||||
if (pathname.startsWith("/backup-jobs")) {
|
||||
breadcrumbs.push({
|
||||
label: "Backup jobs",
|
||||
href: "/backup-jobs",
|
||||
isCurrentPage: pathname === "/backup-jobs",
|
||||
});
|
||||
|
||||
if (pathname.startsWith("/backup-jobs/") && params.scheduleId) {
|
||||
breadcrumbs.push({
|
||||
label: `Schedule #${params.scheduleId}`,
|
||||
isCurrentPage: true,
|
||||
});
|
||||
}
|
||||
|
||||
return breadcrumbs;
|
||||
}
|
||||
|
||||
breadcrumbs.push({
|
||||
label: "Volumes",
|
||||
href: "/volumes",
|
||||
|
||||
Reference in New Issue
Block a user