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 ++++
 1 file changed, 4 insertions(+)

(limited to 'components/form-data-plant/form-data-table-columns.tsx')

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<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>
-- 
cgit v1.2.3

