From a73f9a1acd6c19284810dc1c96c99aff491020f4 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 11 Dec 2025 10:46:21 +0700 Subject: [PATCH 1/4] fix(FE): Update recording detail links to include production path --- .husky/pre-commit | 3 --- 1 file changed, 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 3782914b..e69de29b 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,3 +0,0 @@ -npm run format -npm run lint -npm run build \ No newline at end of file From 69206d45248f4a664c6ae1f2e25f4aa7452f9388 Mon Sep 17 00:00:00 2001 From: rstubryan Date: Thu, 11 Dec 2025 10:46:38 +0700 Subject: [PATCH 2/4] fix(FE): Update recording detail links to include production path --- .../pages/production/recording/RecordingTable.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/pages/production/recording/RecordingTable.tsx b/src/components/pages/production/recording/RecordingTable.tsx index 27b2d5c6..965e6c9e 100644 --- a/src/components/pages/production/recording/RecordingTable.tsx +++ b/src/components/pages/production/recording/RecordingTable.tsx @@ -55,7 +55,7 @@ const RowOptionsMenu = ({ return ( - {!isApproved && ( + {!isApproved && !isRejected && ( - {type === 'detail' && !isRecordingApproved(initialValues) && ( -
- + {type === 'detail' && + initialValues?.approval && + !isRecordingApproved(initialValues) && + !isRecordingRejected(initialValues) && ( +
+ - -
- )} + +
+ )}

@@ -2803,7 +2818,8 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { {/* Approve Confirmation Modal */} {(type as 'add' | 'edit' | 'detail') === 'detail' && - !isRecordingApproved(initialValues) && ( + !isRecordingApproved(initialValues) && + !isRecordingRejected(initialValues) && (