diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-13 17:33:50 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-13 17:33:50 +0900 |
| commit | 517a3e91a899c54a70de76d380eda5f73e8133e9 (patch) | |
| tree | 8a81bf1b7ae9dce6d23c2a53265964a424cd562e /components/form-data | |
| parent | 44e86e16e4a5bf81696b101a7dbd53d55441e1cb (diff) | |
(김준회) 벤더데이터: 출처 표시 (가져온 건 S-EDP, 만든 건 EVCP), EVCP에서 만든 태그만 삭제 버튼 활성화화
Diffstat (limited to 'components/form-data')
| -rw-r--r-- | components/form-data/form-data-table-columns.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
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<TData extends object>({ 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" && ( + <span className="ml-2 text-xs text-muted-foreground">(S-EDP)</span> + )} </DropdownMenuItem> </DropdownMenuContent> </DropdownMenu> |
