From b3ca16c956beca40249fb0c25aac51f90c306e7f Mon Sep 17 00:00:00 2001 From: FaithDaka Date: Fri, 1 Mar 2024 13:27:17 +0300 Subject: [PATCH] fix: update links to match --- apps/picsa-apps/dashboard/src/app/app.routes.ts | 2 +- apps/picsa-apps/dashboard/src/app/data/navLinks.ts | 1 + .../src/app/modules/crop-information/crop-information.page.ts | 2 +- .../modules/crop-information/pages/new_entry/new_entry.page.ts | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/picsa-apps/dashboard/src/app/app.routes.ts b/apps/picsa-apps/dashboard/src/app/app.routes.ts index 9a0c91e2b..abe6eff33 100644 --- a/apps/picsa-apps/dashboard/src/app/app.routes.ts +++ b/apps/picsa-apps/dashboard/src/app/app.routes.ts @@ -26,7 +26,7 @@ export const appRoutes: Route[] = [ // unmatched routes fallback to home { - path: 'crop', + path: 'crop-information', loadChildren: () => import('./modules/crop-information/crop-information.module').then((m) => m.CropInformationModule), }, diff --git a/apps/picsa-apps/dashboard/src/app/data/navLinks.ts b/apps/picsa-apps/dashboard/src/app/data/navLinks.ts index 1f5afe3f9..731612a9b 100644 --- a/apps/picsa-apps/dashboard/src/app/data/navLinks.ts +++ b/apps/picsa-apps/dashboard/src/app/data/navLinks.ts @@ -34,6 +34,7 @@ export const DASHBOARD_NAV_LINKS = [ { label: 'Crop Information', href: '/crop-information', + matIcon:'spa' }, { label: 'Monitoring Forms', diff --git a/apps/picsa-apps/dashboard/src/app/modules/crop-information/crop-information.page.ts b/apps/picsa-apps/dashboard/src/app/modules/crop-information/crop-information.page.ts index 0914aff3e..38ecf5fad 100644 --- a/apps/picsa-apps/dashboard/src/app/modules/crop-information/crop-information.page.ts +++ b/apps/picsa-apps/dashboard/src/app/modules/crop-information/crop-information.page.ts @@ -39,6 +39,6 @@ export class CropInformationPageComponent implements OnInit { } navigateToEntryPage() { - this.router.navigate(['/crop/entry']); + this.router.navigate(['/crop-information/entry']); } } diff --git a/apps/picsa-apps/dashboard/src/app/modules/crop-information/pages/new_entry/new_entry.page.ts b/apps/picsa-apps/dashboard/src/app/modules/crop-information/pages/new_entry/new_entry.page.ts index 65bfe58ec..04ad52b77 100644 --- a/apps/picsa-apps/dashboard/src/app/modules/crop-information/pages/new_entry/new_entry.page.ts +++ b/apps/picsa-apps/dashboard/src/app/modules/crop-information/pages/new_entry/new_entry.page.ts @@ -50,6 +50,6 @@ export class NewEntryPageComponent implements OnInit { }); } routeBack() { - this.router.navigate(['/crop']); + this.router.navigate(['/crop-information']); } }