summaryrefslogtreecommitdiff
path: root/lib/swp/table/swp-inbox-history-dialog.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-11-27 17:48:28 +0900
committerjoonhoekim <26rote@gmail.com>2025-11-27 17:48:28 +0900
commit95984e67b8d57fbe1431fcfedf3bb682f28416b3 (patch)
tree79953157e70b30c3c65ae52a01adb65fd4344bee /lib/swp/table/swp-inbox-history-dialog.tsx
parent647e2e487238aed36ff9a880648e5c3e8725160f (diff)
(김준회) swp 영문 처리
Diffstat (limited to 'lib/swp/table/swp-inbox-history-dialog.tsx')
-rw-r--r--lib/swp/table/swp-inbox-history-dialog.tsx40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/swp/table/swp-inbox-history-dialog.tsx b/lib/swp/table/swp-inbox-history-dialog.tsx
index fbb75f3c..e46829d0 100644
--- a/lib/swp/table/swp-inbox-history-dialog.tsx
+++ b/lib/swp/table/swp-inbox-history-dialog.tsx
@@ -217,7 +217,7 @@ export function SwpInboxHistoryDialog({
const handleCancelFile = async (file: SwpFileApiResponse) => {
if (!file.BOX_SEQ || !file.ACTV_SEQ) {
- toast.error("취소할 수 없는 파일입니다 (BOX_SEQ 또는 ACTV_SEQ 없음)");
+ toast.error("File cannot be canceled (Missing BOX_SEQ or ACTV_SEQ)");
return;
}
@@ -236,13 +236,13 @@ export function SwpInboxHistoryDialog({
userId,
});
- toast.success(`파일 취소 완료: ${file.FILE_NM}`);
+ toast.success(`File canceled: ${file.FILE_NM}`);
// 취소된 파일로 마킹 (상태 변경)
setCancelledFiles((prev) => new Set(prev).add(fileKey));
} catch (error) {
- console.error("파일 취소 실패:", error);
- toast.error("파일 취소에 실패했습니다");
+ console.error("File cancel failed:", error);
+ toast.error("Failed to cancel file");
} finally {
setCancellingFiles((prev) => {
const newSet = new Set(prev);
@@ -254,7 +254,7 @@ export function SwpInboxHistoryDialog({
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)}`;
@@ -262,10 +262,10 @@ export function SwpInboxHistoryDialog({
// 새 탭에서 다운로드
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");
}
};
@@ -284,10 +284,10 @@ export function SwpInboxHistoryDialog({
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-6xl max-h-[90vh] overflow-y-auto">
<DialogHeader>
- <DialogTitle>Document 전체 이력</DialogTitle>
+ <DialogTitle>Document History</DialogTitle>
{docNo && (
<DialogDescription>
- {docNo} - 총 {documentFiles.length}개 파일
+ {docNo} - Total {documentFiles.length} files
</DialogDescription>
)}
</DialogHeader>
@@ -299,7 +299,7 @@ export function SwpInboxHistoryDialog({
<div className="relative flex-1">
<Search className="absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground" />
<Input
- placeholder="Rev No, Activity No, File Name, Stage로 검색..."
+ placeholder="Search by Rev No, Activity No, File Name, Stage..."
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
className="pl-10"
@@ -313,12 +313,12 @@ export function SwpInboxHistoryDialog({
{isAllExpanded ? (
<>
<ChevronDown className="h-4 w-4 mr-2" />
- 일괄 닫기
+ Collapse All
</>
) : (
<>
<ChevronRight className="h-4 w-4 mr-2" />
- 일괄 열기
+ Expand All
</>
)}
</Button>
@@ -327,7 +327,7 @@ export function SwpInboxHistoryDialog({
{/* 검색 결과 안내 */}
{searchQuery && (
<div className="text-sm text-muted-foreground">
- 검색 결과: {filteredFiles.length}개 파일 (전체 {documentFiles.length}개)
+ Search Results: {filteredFiles.length} files (Total {documentFiles.length})
</div>
)}
@@ -358,7 +358,7 @@ export function SwpInboxHistoryDialog({
{revision.stage}
</Badge>
<span className="text-sm text-muted-foreground">
- {revision.activities.length}개 그룹 / {revision.totalFiles}개 파일
+ {revision.activities.length} groups / {revision.totalFiles} files
</span>
</div>
</div>
@@ -394,11 +394,11 @@ export function SwpInboxHistoryDialog({
</>
) : (
<Badge variant="outline" className="bg-gray-100 text-gray-800">
- Activity 없음
+ No Activity
</Badge>
)}
<span className="text-xs text-muted-foreground">
- {activity.files.length}개 파일
+ {activity.files.length} files
</span>
</div>
</div>
@@ -463,12 +463,12 @@ export function SwpInboxHistoryDialog({
{isCancelling ? (
<>
<Loader2 className="h-4 w-4 mr-1 animate-spin" />
- 취소 중...
+ Canceling...
</>
) : (
<>
<XCircle className="h-4 w-4 mr-1" />
- 취소
+ Cancel
</>
)}
</Button>
@@ -497,7 +497,7 @@ export function SwpInboxHistoryDialog({
</div>
) : (
<div className="p-8 text-center text-muted-foreground">
- {searchQuery ? "검색 결과가 없습니다" : "파일 정보가 없습니다"}
+ {searchQuery ? "No search results" : "No file information"}
</div>
)}
</div>