운영팀 등록 테넌트 수정 및 삭제 금지 기능 구현
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user