diff --git a/src/components/pages/production/recording/RecordingTable.tsx b/src/components/pages/production/recording/RecordingTable.tsx index 65cead2a..e5bd30cb 100644 --- a/src/components/pages/production/recording/RecordingTable.tsx +++ b/src/components/pages/production/recording/RecordingTable.tsx @@ -6,6 +6,7 @@ import useSWR from 'swr'; import { Icon } from '@iconify/react'; import { SortingState, CellContext } from '@tanstack/react-table'; import { cn, formatDate } from '@/lib/helper'; +import RequirePermission from '@/components/helper/RequirePermission'; import { useModal } from '@/components/Modal'; import Modal from '@/components/Modal'; import Button from '@/components/Button'; @@ -59,60 +60,70 @@ const RowOptionsMenu = ({ return ( - - - {!isApproved && !isRejected && ( + + + + + + {!isApproved && !isRejected && ( + + + )} {!isApproved && !isRejected && ( + + + + )} + - )} - + ); }; @@ -514,49 +525,63 @@ const RecordingTable = () => {
- + + + {selectedRowIds.length > 0 && ( <> - + + + - + + + )}
diff --git a/src/components/pages/production/recording/form/RecordingForm.tsx b/src/components/pages/production/recording/form/RecordingForm.tsx index 4dca38dc..c8fa3ca0 100644 --- a/src/components/pages/production/recording/form/RecordingForm.tsx +++ b/src/components/pages/production/recording/form/RecordingForm.tsx @@ -8,6 +8,7 @@ import useSWR from 'swr'; import { Icon } from '@iconify/react'; import Button from '@/components/Button'; +import RequirePermission from '@/components/helper/RequirePermission'; import Card from '@/components/Card'; import Badge from '@/components/Badge'; import NumberInput from '@/components/input/NumberInput'; @@ -1492,41 +1493,45 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { !isRecordingApproved(initialValues) && !isRecordingRejected(initialValues) && (
- + + + - + + +
)}
@@ -2696,36 +2701,40 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => { {/* Left side - Detail & Edit actions */}
{type === 'detail' && deleteRecordingClickHandler && ( - + + + )} {type === 'detail' && initialValues && ( - + + + )}
{/* Right side actions */}