운영팀 등록 테넌트 수정 및 삭제 금지 기능 구현

This commit is contained in:
2026-01-04 17:52:14 +09:00
parent bed13dc633
commit abf13b7a2a
2 changed files with 44 additions and 19 deletions

View File

@@ -3403,22 +3403,31 @@
</button>
)}
<div className="flex items-center gap-1 ml-2 border-l border-slate-200 pl-2">
<button
onClick={() => handleOpenEditTenant(t)}
className="p-1.5 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors"
title="수정 및 계약 관리"
>
<LucideIcon name="edit-2" className="w-4 h-4" />
</button>
<button
onClick={() => handleDeleteTenant(t.id)}
className="p-1.5 text-red-600 hover:bg-red-50 rounded-lg transition-colors"
title="삭제"
>
<LucideIcon name="trash-2" className="w-4 h-4" />
</button>
</div>
{!(t.register_role === 'operator' && currentRole !== '운영자') && (
<div className="flex items-center gap-1 ml-2 border-l border-slate-200 pl-2">
<button
onClick={() => handleOpenEditTenant(t)}
className="p-1.5 text-blue-600 hover:bg-blue-50 rounded-lg transition-colors"
title="수정 및 계약 관리"
>
<LucideIcon name="edit-2" className="w-4 h-4" />
</button>
<button
onClick={() => handleDeleteTenant(t.id)}
className="p-1.5 text-red-600 hover:bg-red-50 rounded-lg transition-colors"
title="삭제"
>
<LucideIcon name="trash-2" className="w-4 h-4" />
</button>
</div>
)}
{t.register_role === 'operator' && currentRole !== '운영자' && (
<div className="flex items-center gap-1 ml-2 border-l border-slate-200 pl-2">
<div className="p-1.5 text-slate-300 cursor-help" title="운영팀 등록 테넌트는 수정/삭제가 제약됩니다.">
<LucideIcon name="lock" className="w-4 h-4" />
</div>
</div>
)}
</div>
</td>
</tr>