From 517a3e91a899c54a70de76d380eda5f73e8133e9 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Thu, 13 Nov 2025 17:33:50 +0900 Subject: (김준회) 벤더데이터: 출처 표시 (가져온 건 S-EDP, 만든 건 EVCP), EVCP에서 만든 태그만 삭제 버튼 활성화화 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/form-data-plant/form-data-table-columns.tsx | 4 ++++ components/form-data/form-data-table-columns.tsx | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'components') diff --git a/components/form-data-plant/form-data-table-columns.tsx b/components/form-data-plant/form-data-table-columns.tsx index d453f6c2..fcee10e4 100644 --- a/components/form-data-plant/form-data-table-columns.tsx +++ b/components/form-data-plant/form-data-table-columns.tsx @@ -529,8 +529,12 @@ export function getColumns({ setRowAction({ row, type: "delete" }); }} className="text-red-600 focus:text-red-600" + disabled={row.original?.source !== "EVCP"} // EVCP에서 생성한 태그만 삭제 가능 > Delete + {row.original?.source && row.original.source !== "EVCP" && ( + (S-EDP) + )} diff --git a/components/form-data/form-data-table-columns.tsx b/components/form-data/form-data-table-columns.tsx index 2c6b6a30..b02765a4 100644 --- a/components/form-data/form-data-table-columns.tsx +++ b/components/form-data/form-data-table-columns.tsx @@ -475,8 +475,12 @@ export function getColumns({ setRowAction({ row, type: "delete" }); }} className="text-red-600 focus:text-red-600" + disabled={row.original?.source !== "EVCP"} // EVCP에서 생성한 태그만 삭제 가능 > Delete + {row.original?.source && row.original.source !== "EVCP" && ( + (S-EDP) + )} -- cgit v1.2.3