From 0c7abd3466ebfc79b8352b5b3c0b5f95b860cd43 Mon Sep 17 00:00:00 2001 From: Lixian Zhou Date: Fri, 13 Mar 2026 11:46:14 -0400 Subject: [PATCH] fix --- client/src/components/events/EventsList.js | 12 +++++++----- .../components/trans-routes/PersonnelInfoTable.js | 10 ++++++---- client/src/components/trans-routes/RouteView.js | 4 ++-- .../src/components/trans-routes/RoutesDashboard.js | 4 +++- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/client/src/components/events/EventsList.js b/client/src/components/events/EventsList.js index a2e1de4..b1e5200 100644 --- a/client/src/components/events/EventsList.js +++ b/client/src/components/events/EventsList.js @@ -529,11 +529,13 @@ const EventsList = () => { {/* */} {AuthService.canEditMedicalEvents() && } - event.status === (showDeletedItems ? 'inactive' : 'active'))} - filename="events" - /> + {AuthService.canEditDriverAssignment() && ( + event.status === (showDeletedItems ? 'inactive' : 'active'))} + filename="events" + /> + )} diff --git a/client/src/components/trans-routes/PersonnelInfoTable.js b/client/src/components/trans-routes/PersonnelInfoTable.js index 534bcf4..aa22f8a 100644 --- a/client/src/components/trans-routes/PersonnelInfoTable.js +++ b/client/src/components/trans-routes/PersonnelInfoTable.js @@ -689,9 +689,11 @@ const PersonnelInfoTable = ({transRoutes, showCompletedInfo, <> {!showGroupInfo && (
- - Generate Inbound Participants Report - + {canExportRouteReport && ( + + Generate Inbound Participants Report + + )}
)} {showGroupInfo && (
@@ -704,7 +706,7 @@ const PersonnelInfoTable = ({transRoutes, showCompletedInfo, )} - + {allowForceEdit && }
)} diff --git a/client/src/components/trans-routes/RouteView.js b/client/src/components/trans-routes/RouteView.js index 3f51b91..05beb88 100644 --- a/client/src/components/trans-routes/RouteView.js +++ b/client/src/components/trans-routes/RouteView.js @@ -450,7 +450,7 @@ const RouteView = () => { style={{ width: '260px' }} value={routeStatusValue} onChange={(e) => setRouteStatusValue(e.target.value)} - disabled={isSavingRouteStatus} + disabled={isSavingRouteStatus || !canEditRoutes} > {routeStatusOptions.map((option) => (