refactor: use correct namings

This commit is contained in:
Nicolas Meienberger
2025-11-02 16:05:22 +01:00
parent 3befa127d7
commit 8f447ac58d
10 changed files with 505 additions and 53 deletions

View File

@@ -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,