mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 23:05:46 +00:00
feat(FE-170): add grading button for laying category in RecordingTable
This commit is contained in:
@@ -48,6 +48,9 @@ const RowOptionsMenu = ({
|
|||||||
approveClickHandler: () => void;
|
approveClickHandler: () => void;
|
||||||
rejectClickHandler: () => void;
|
rejectClickHandler: () => void;
|
||||||
}) => {
|
}) => {
|
||||||
|
const isLayingCategory =
|
||||||
|
props.row.original.project_flock_category === 'LAYING';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<RowOptionsMenuWrapper type={type}>
|
<RowOptionsMenuWrapper type={type}>
|
||||||
<Button
|
<Button
|
||||||
@@ -68,6 +71,17 @@ const RowOptionsMenu = ({
|
|||||||
<Icon icon='mdi:pencil-outline' width={16} height={16} />
|
<Icon icon='mdi:pencil-outline' width={16} height={16} />
|
||||||
Edit
|
Edit
|
||||||
</Button>
|
</Button>
|
||||||
|
{isLayingCategory && (
|
||||||
|
<Button
|
||||||
|
href={`recording/grading/add?recording_id=${props.row.original.id}`}
|
||||||
|
variant='ghost'
|
||||||
|
color='info'
|
||||||
|
className='justify-start text-sm'
|
||||||
|
>
|
||||||
|
<Icon icon='material-symbols:egg' width={16} height={16} />
|
||||||
|
Grading
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
<Button
|
<Button
|
||||||
onClick={approveClickHandler}
|
onClick={approveClickHandler}
|
||||||
variant='ghost'
|
variant='ghost'
|
||||||
|
|||||||
Reference in New Issue
Block a user