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']); } }