From f17be14174f80ceea5902aee8d51aba453ee6d3e Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Tue, 17 Dec 2024 11:53:12 -0500 Subject: [PATCH] Convert to use NavList::PRESENT_LINK constant --- src/Controller/MemberController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Controller/MemberController.php b/src/Controller/MemberController.php index b5319f8..593fdac 100644 --- a/src/Controller/MemberController.php +++ b/src/Controller/MemberController.php @@ -22,6 +22,7 @@ class MemberController extends AbstractController private array $navLinks = [], ) { $this->navLinks = NavList::LIST; + $this->navLinks['case_list'] = NavList::PRESENT_LINK; } #[Route('/list-members/{id}', name: 'app_case_members')] @@ -36,7 +37,7 @@ class MemberController extends AbstractController $this->navLinks, [ 'breadcrumbs' => [ - new Breadcrumb($this->generateUrl('app_case_list'), 'List Cases'), + new Breadcrumb($this->generateUrl('app_list_cases'), 'List Cases'), new Breadcrumb($this->generateUrl('app_case_members', ['id' => $id]), 'List Members'), ], 'notifications' => $user->retrieveUnreadNotifications(), @@ -105,7 +106,7 @@ class MemberController extends AbstractController $this->navLinks, [ 'breadcrumbs' => [ - new Breadcrumb($this->generateUrl('app_case_list'), 'List Cases'), + new Breadcrumb($this->generateUrl('app_list_cases'), 'List Cases'), new Breadcrumb($this->generateUrl('app_case_members', ['id' => $id]), 'List Members'), new Breadcrumb($this->generateUrl('app_case_add_member', ['id' => $id]), 'Add Member'), ], @@ -170,7 +171,7 @@ class MemberController extends AbstractController $this->navLinks, [ 'breadcrumbs' => [ - new Breadcrumb($this->generateUrl('app_case_list'), 'List Cases'), + new Breadcrumb($this->generateUrl('app_list_cases'), 'List Cases'), new Breadcrumb($this->generateUrl('app_case_members', ['id' => $caseId]), 'List Members'), new Breadcrumb($this->generateUrl('app_case_edit_member', ['caseId' => $caseId, 'memberId' => $memberId]), 'Edit Member'), ],