260716_03_ENH: 권한 별 노출에 대한 수정

This commit is contained in:
2026-07-16 15:58:59 +09:00
parent 7275c77db0
commit 4ca93ab26a
3 changed files with 32 additions and 14 deletions

View File

@@ -13,6 +13,8 @@ import type { ListDownloadMode } from '@/types/list'
import type { MessageSendMode } from '@/components/dialog/MessageSendDialog'
export type ListManageActionsProps = {
/** 리스트 초기화/헤더 관리/업로드처럼 내부 관리자 전용 버튼 노출 여부 (외주사 계정에는 숨겨야 함) */
showAdminActions: boolean
onReset: () => void
onHeaderManage: () => void
onUpload: () => void
@@ -22,6 +24,7 @@ export type ListManageActionsProps = {
}
export function ListManageActions({
showAdminActions,
onReset,
onHeaderManage,
onUpload,
@@ -32,17 +35,21 @@ export function ListManageActions({
return (
<div className="flex gap-2 items-center">
<div className="flex flex-1 items-center gap-2 flex-wrap">
<Button variant="destructive" className="text-base gap-2" onClick={onReset}>
<RotateCcw className="w-4 h-4" />
리스트 초기화
</Button>
<Button className="text-base" onClick={onHeaderManage}>
헤더 관리
</Button>
<Button className="text-base gap-2" onClick={onUpload}>
<Upload className="w-4 h-4" />
리스트 업로드
</Button>
{showAdminActions && (
<>
<Button variant="destructive" className="text-base gap-2" onClick={onReset}>
<RotateCcw className="w-4 h-4" />
리스트 초기화
</Button>
<Button className="text-base" onClick={onHeaderManage}>
헤더 관리
</Button>
<Button className="text-base gap-2" onClick={onUpload}>
<Upload className="w-4 h-4" />
리스트 업로드
</Button>
</>
)}
<Button className="text-base bg-excel gap-2" onClick={() => onDownload('list')}>
<Download className="w-4 h-4" />
리스트