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