summaryrefslogtreecommitdiff
path: root/lib/swp/table/swp-table-toolbar.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-10-24 16:46:30 +0900
committerjoonhoekim <26rote@gmail.com>2025-10-24 16:46:30 +0900
commit8b777900a2908efebd767493f77ee3ad489b49a7 (patch)
tree6b6d2683bbc649c0c782a0514d1d23b8a06a0641 /lib/swp/table/swp-table-toolbar.tsx
parent69b0f57f2800896b09528025710a3385ed89cdd8 (diff)
(김준회) fix: expand 핸들러의 event bubbling 문제 처리, 파일업로드 버튼추가
Diffstat (limited to 'lib/swp/table/swp-table-toolbar.tsx')
-rw-r--r--lib/swp/table/swp-table-toolbar.tsx23
1 files changed, 19 insertions, 4 deletions
diff --git a/lib/swp/table/swp-table-toolbar.tsx b/lib/swp/table/swp-table-toolbar.tsx
index 7c5f2f2e..6858f42e 100644
--- a/lib/swp/table/swp-table-toolbar.tsx
+++ b/lib/swp/table/swp-table-toolbar.tsx
@@ -84,6 +84,20 @@ export function SwpTableToolbar({
});
};
+ /**
+ * 파일 업로드 핸들러
+ * 1) 네트워크 드라이브에 정해진 규칙대로, 파일이름 기반으로 파일 업로드하기 (단, cpyCd는 어떻게 해결할지 고민해봐야 함...)
+ * 2) 1~N개 파일 받아서, 파일 이름 기준으로 파싱해서 SaveInBoxList API를 통해 업로드 처리
+ *
+ * 개발중인 동안은 토스트 반환하도록 처리
+ */
+ const handleUploadFiles = () => {
+ toast({
+ title: "파일 업로드",
+ description: "현재 개발중입니다.",
+ });
+ }
+
// 검색 적용
const handleSearch = () => {
onFiltersChange(localFilters);
@@ -122,15 +136,16 @@ export function SwpTableToolbar({
{isSyncing ? "동기화 중..." : "SWP 동기화"}
</Button>
- <Button variant="outline" size="sm" disabled>
- <Download className="h-4 w-4 mr-2" />
- Excel 내보내기
- </Button>
</div>
<div className="text-sm text-muted-foreground">
SWP 문서 관리 시스템
</div>
+ <div>
+ <Button variant="outline" size="sm" onClick={handleUploadFiles}>
+ 파일 업로드하기
+ </Button>
+ </div>
</div>
{/* 검색 필터 */}