summaryrefslogtreecommitdiff
path: root/lib/swp/table/swp-inbox-table.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/swp/table/swp-inbox-table.tsx')
-rw-r--r--lib/swp/table/swp-inbox-table.tsx30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/swp/table/swp-inbox-table.tsx b/lib/swp/table/swp-inbox-table.tsx
index d070f2fd..788fcb70 100644
--- a/lib/swp/table/swp-inbox-table.tsx
+++ b/lib/swp/table/swp-inbox-table.tsx
@@ -389,7 +389,7 @@ export function SwpInboxTable({
// 선택된 파일 일괄 취소
const handleBulkCancel = async () => {
if (selectedFiles.size === 0) {
- toast.error("취소할 파일을 선택해주세요");
+ toast.error("Please select files to cancel");
return;
}
@@ -398,12 +398,12 @@ export function SwpInboxTable({
);
if (filesToCancel.length === 0) {
- toast.error("취소할 파일이 없습니다");
+ toast.error("No files to cancel");
return;
}
try {
- toast.info(`${filesToCancel.length}개 파일 취소 중...`);
+ toast.info(`Canceling ${filesToCancel.length} files...`);
// 병렬 취소
const cancelPromises = filesToCancel.map((row) =>
@@ -416,21 +416,21 @@ export function SwpInboxTable({
await Promise.all(cancelPromises);
- toast.success(`${filesToCancel.length}개 파일 취소 완료`);
+ toast.success(`Canceled ${filesToCancel.length} files`);
setSelectedFiles(new Set()); // 선택 초기화
// 페이지 리프레시
window.location.reload();
} catch (error) {
- console.error("일괄 취소 실패:", error);
- toast.error("일부 파일 취소에 실패했습니다");
+ console.error("Bulk cancel failed:", error);
+ toast.error("Failed to cancel some files");
}
};
const handleDownloadFile = async (file: SwpFileApiResponse) => {
try {
- toast.info("파일 다운로드 준비 중...");
+ toast.info("Preparing file download...");
// API route를 통해 다운로드
const downloadUrl = `/api/swp/download/${encodeURIComponent(file.OWN_DOC_NO)}?projNo=${encodeURIComponent(projNo)}&fileName=${encodeURIComponent(file.FILE_NM)}`;
@@ -438,10 +438,10 @@ export function SwpInboxTable({
// 새 탭에서 다운로드
window.open(downloadUrl, "_blank");
- toast.success(`파일 다운로드 시작: ${file.FILE_NM}`);
+ toast.success(`File download started: ${file.FILE_NM}`);
} catch (error) {
- console.error("파일 다운로드 실패:", error);
- toast.error("파일 다운로드에 실패했습니다");
+ console.error("File download failed:", error);
+ toast.error("Failed to download file");
}
};
@@ -477,7 +477,7 @@ export function SwpInboxTable({
if (files.length === 0 && requiredDocs.length === 0) {
return (
<div className="border rounded-lg p-8 text-center text-muted-foreground">
- 업로드한 파일이 없습니다.
+ No uploaded files.
</div>
);
}
@@ -493,7 +493,7 @@ export function SwpInboxTable({
onClick={() => setSelectedStatus(null)}
className="h-9"
>
- 전체 ({files.length + requiredDocs.length})
+ All ({files.length + requiredDocs.length})
</Button>
{statusCounts.map((statusCount) => (
<Button
@@ -516,7 +516,7 @@ export function SwpInboxTable({
{selectedFiles.size > 0 && (
<div className="flex items-center gap-2">
<span className="text-sm text-muted-foreground">
- {selectedFiles.size}개 선택됨
+ {selectedFiles.size} selected
</span>
<Button
variant="destructive"
@@ -533,7 +533,7 @@ export function SwpInboxTable({
{/* 테이블 */}
{tableRows.length === 0 ? (
<div className="border rounded-lg p-8 text-center text-muted-foreground">
- 해당 상태의 파일이 없습니다.
+ No files with this status.
</div>
) : (
<div className="rounded-md border overflow-x-auto">
@@ -685,7 +685,7 @@ export function SwpInboxTable({
}}
>
{row.note1 ? (
- <div className="truncate cursor-pointer hover:text-primary underline" title="클릭하여 전체 내용 보기">
+ <div className="truncate cursor-pointer hover:text-primary underline" title="Click to view full content">
{row.note1}
</div>
) : (