mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore: remove unnecessary code and adjust edit link
This commit is contained in:
@@ -94,7 +94,7 @@ const RowOptionsMenu = ({
|
|||||||
{showEditButton && (
|
{showEditButton && (
|
||||||
<RequirePermission permissions='lti.production.transfer_to_laying.update'>
|
<RequirePermission permissions='lti.production.transfer_to_laying.update'>
|
||||||
<Button
|
<Button
|
||||||
href={`/production/transfer-to-laying/detail/edit/?transferToLayingId=${props.row.original.id}`}
|
href={`/production/transfer-to-laying/?action=edit&id=${props.row.original.id}`}
|
||||||
variant='ghost'
|
variant='ghost'
|
||||||
color='none'
|
color='none'
|
||||||
className='p-3 justify-start text-sm font-semibold w-full'
|
className='p-3 justify-start text-sm font-semibold w-full'
|
||||||
@@ -105,34 +105,6 @@ const RowOptionsMenu = ({
|
|||||||
</RequirePermission>
|
</RequirePermission>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* {showApproveButton && (
|
|
||||||
<RequirePermission permissions='lti.production.transfer_to_laying.approve'>
|
|
||||||
<Button
|
|
||||||
variant='ghost'
|
|
||||||
color='success'
|
|
||||||
onClick={approveClickHandler}
|
|
||||||
className='p-3 justify-start text-sm font-semibold w-full'
|
|
||||||
>
|
|
||||||
<Icon icon='heroicons:check' width={20} height={20} />
|
|
||||||
Approve
|
|
||||||
</Button>
|
|
||||||
</RequirePermission>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{showRejectButton && (
|
|
||||||
<RequirePermission permissions='lti.production.transfer_to_laying.approve'>
|
|
||||||
<Button
|
|
||||||
variant='ghost'
|
|
||||||
color='error'
|
|
||||||
onClick={rejectClickHandler}
|
|
||||||
className='p-3 justify-start text-sm font-semibold w-full'
|
|
||||||
>
|
|
||||||
<Icon icon='heroicons:x-mark' width={20} height={20} />
|
|
||||||
Reject
|
|
||||||
</Button>
|
|
||||||
</RequirePermission>
|
|
||||||
)} */}
|
|
||||||
|
|
||||||
{showDeleteButton && (
|
{showDeleteButton && (
|
||||||
<RequirePermission permissions='lti.production.transfer_to_laying.delete'>
|
<RequirePermission permissions='lti.production.transfer_to_laying.delete'>
|
||||||
<hr className='mx-3 border-base-content/10 h-px' />
|
<hr className='mx-3 border-base-content/10 h-px' />
|
||||||
@@ -503,7 +475,12 @@ const TransferToLayingsTable = () => {
|
|||||||
<div className='w-fit flex flex-row gap-3 flex-wrap'>
|
<div className='w-fit flex flex-row gap-3 flex-wrap'>
|
||||||
<RequirePermission permissions='lti.production.transfer_to_laying.create'>
|
<RequirePermission permissions='lti.production.transfer_to_laying.create'>
|
||||||
<Button
|
<Button
|
||||||
href='/production/transfer-to-laying/add'
|
href={{
|
||||||
|
pathname: '/production/transfer-to-laying',
|
||||||
|
query: {
|
||||||
|
action: 'add',
|
||||||
|
},
|
||||||
|
}}
|
||||||
color='primary'
|
color='primary'
|
||||||
className='px-3 py-2.5 w-fit text-sm text-base-100 rounded-lg shadow-sm'
|
className='px-3 py-2.5 w-fit text-sm text-base-100 rounded-lg shadow-sm'
|
||||||
>
|
>
|
||||||
@@ -561,7 +538,7 @@ const TransferToLayingsTable = () => {
|
|||||||
color='none'
|
color='none'
|
||||||
onClick={filterModal.openModal}
|
onClick={filterModal.openModal}
|
||||||
className={cn(
|
className={cn(
|
||||||
'px-3 py-2.5 gap-1.5 text-sm text-base-content/50 border border-base-content/10 rounded-xl shadow-button-soft transition-all duration-1000',
|
'px-3 py-2.5 gap-1.5 text-sm text-base-content/50 border border-base-content/10 rounded-xl shadow-button-soft transition-all',
|
||||||
{
|
{
|
||||||
'border-primary-gradient text-primary': isFilterActive,
|
'border-primary-gradient text-primary': isFilterActive,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user