diff options
Diffstat (limited to 'lib/rfq-last/attachment/rfq-attachments-table.tsx')
| -rw-r--r-- | lib/rfq-last/attachment/rfq-attachments-table.tsx | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/lib/rfq-last/attachment/rfq-attachments-table.tsx b/lib/rfq-last/attachment/rfq-attachments-table.tsx index 09c9fe35..3098f8f5 100644 --- a/lib/rfq-last/attachment/rfq-attachments-table.tsx +++ b/lib/rfq-last/attachment/rfq-attachments-table.tsx @@ -412,9 +412,43 @@ export function RfqAttachmentsTable({ id: "actions", header: "작업", cell: ({ row }) => { + // 구매 탭에서만 작업 버튼 표시 + if (activeTab !== '구매') { + return <span className="text-muted-foreground text-sm">-</span>; + } + return ( <DropdownMenu> - {/* ... 기존 드롭다운 메뉴 내용 ... */} + <DropdownMenuTrigger asChild> + <Button variant="ghost" className="h-8 w-8 p-0"> + <span className="sr-only">메뉴 열기</span> + <svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg"> + <path d="M3.625 7.5C3.625 8.12132 3.12132 8.625 2.5 8.625C1.87868 8.625 1.375 8.12132 1.375 7.5C1.375 6.87868 1.87868 6.375 2.5 6.375C3.12132 6.375 3.625 6.87868 3.625 7.5ZM8.625 7.5C8.625 8.12132 8.12132 8.625 7.5 8.625C6.87868 8.625 6.375 8.12132 6.375 7.5C6.375 6.87868 6.87868 6.375 7.5 6.375C8.12132 6.375 8.625 6.87868 8.625 7.5ZM12.5 8.625C13.1213 8.625 13.625 8.12132 13.625 7.5C13.625 6.87868 13.1213 6.375 12.5 6.375C11.8787 6.375 11.375 6.87868 11.375 7.5C11.375 8.12132 11.8787 8.625 12.5 8.625Z" fill="currentColor" fillRule="evenodd" clipRule="evenodd"></path> + </svg> + </Button> + </DropdownMenuTrigger> + <DropdownMenuContent align="end"> + <DropdownMenuItem onClick={() => handleAction({ type: "download", row })}> + 다운로드 + </DropdownMenuItem> + <DropdownMenuItem onClick={() => handleAction({ type: "preview", row })}> + 미리보기 + </DropdownMenuItem> + <DropdownMenuSeparator /> + <DropdownMenuItem onClick={() => handleAction({ type: "history", row })}> + 리비전 히스토리 + </DropdownMenuItem> + <DropdownMenuItem onClick={() => handleAction({ type: "update", row })}> + 새 버전 업로드 + </DropdownMenuItem> + <DropdownMenuSeparator /> + <DropdownMenuItem + onClick={() => handleAction({ type: "delete", row })} + className="text-red-600" + > + 삭제 + </DropdownMenuItem> + </DropdownMenuContent> </DropdownMenu> ); }, |
