This commit is contained in:
wayanrivan
2025-05-08 10:50:40 +07:00
parent 3ab53271d1
commit 28cdd536f1

View File

@ -228,7 +228,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
enableSorting: false, enableSorting: false,
enableHiding: false, enableHiding: false,
cell: (data) => { cell: (data) => {
const row = data.row.original; const row = data.row.original;
const isVisible = (row.status === 'F' ? true : false || row.status === 'P' ? true : false) && row.status_approve !== 'W' ? true : false; const isVisible = (row.status === 'F' ? true : false || row.status === 'P' ? true : false) && row.status_approve !== 'W' ? true : false;
return ( return (
<div key={`actions-${row.id}`}> <div key={`actions-${row.id}`}>
@ -241,12 +241,14 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
> >
<KeenIcon icon="eye" /> <KeenIcon icon="eye" />
</button> </button>
<button <button
className="btn btn-sm btn-icon btn-clear btn-light" className="btn btn-sm btn-icon btn-clear btn-light"
onClick={() => { onClick={() => {
setSelectedTransactionId(row.id); setSelectedTransactionId(row.id);
setShowRollbackDialog(true); setShowRollbackDialog(true);
}} }}
disabled={row.status !== 'C'}
> >
<KeenIcon icon="notepad-edit" /> <KeenIcon icon="notepad-edit" />
</button> </button>
@ -375,7 +377,7 @@ const TransactionProvider = ({ children }: { children: React.ReactNode }) => {
} }
> >
<DetailTransaction /> <DetailTransaction />
<RollbackTransaction/> <RollbackTransaction />
<ResendTransaction <ResendTransaction
isOpen={false} isOpen={false}
onClose={() => console.log('Retry Transaction closed')} onClose={() => console.log('Retry Transaction closed')}