diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-24 09:52:35 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-24 09:52:35 +0000 |
| commit | 0174ad394032a8dad81107341f477d6d23a3c04c (patch) | |
| tree | 6be84f638a852e6d0cea057b67e462e78fc65d41 /lib/vendor-investigation/table/investigation-table-columns.tsx | |
| parent | 912e2bc761d7d57bd33d68cb5050da43dea59636 (diff) | |
(최겸) 구매 피드백 수정(PQ, 실사 등)-1024
Diffstat (limited to 'lib/vendor-investigation/table/investigation-table-columns.tsx')
| -rw-r--r-- | lib/vendor-investigation/table/investigation-table-columns.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/vendor-investigation/table/investigation-table-columns.tsx b/lib/vendor-investigation/table/investigation-table-columns.tsx index a6c1574d..b5344a1e 100644 --- a/lib/vendor-investigation/table/investigation-table-columns.tsx +++ b/lib/vendor-investigation/table/investigation-table-columns.tsx @@ -84,13 +84,18 @@ export function getColumns({ id: "actions", enableHiding: false, cell: ({ row }) => { + const isCanceled = row.original.investigationStatus === "CANCELED" + const isCompleted = row.original.investigationStatus === "COMPLETED" return ( <Button variant="ghost" className="flex size-8 p-0 data-[state=open]:bg-muted" aria-label="실사 정보 수정" + disabled={isCanceled} onClick={() => { - setRowAction?.({ type: "update", row }) + if (!isCanceled || !isCompleted) { + setRowAction?.({ type: "update", row }) + } }} > <Edit className="size-4" aria-hidden="true" /> |
