mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Update button visibility logic in TransferToLayingsTable
This commit is contained in:
@@ -48,11 +48,11 @@ const RowOptionsMenu = ({
|
||||
popoverPosition: 'bottom' | 'top';
|
||||
deleteClickHandler: () => void;
|
||||
}) => {
|
||||
const showEditButton =
|
||||
props.row.original.approval.action !== 'APPROVED' &&
|
||||
props.row.original.approval.action !== 'REJECTED';
|
||||
const showEditButton = props.row.original.approval.action !== 'APPROVED';
|
||||
|
||||
const showDeleteButton = showEditButton;
|
||||
const showDeleteButton =
|
||||
props.row.original.approval.action === 'APPROVED' ||
|
||||
props.row.original.approval.step_name.toLowerCase() === 'pengajuan';
|
||||
|
||||
const popoverId = `transferToLaying#${props.row.original.id}`;
|
||||
const popoverAnchorName = `--anchor-transferToLaying#${props.row.original.id}`;
|
||||
|
||||
Reference in New Issue
Block a user