summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/vendor-document-list/ship/import-from-dolce-button.tsx55
1 files changed, 25 insertions, 30 deletions
diff --git a/lib/vendor-document-list/ship/import-from-dolce-button.tsx b/lib/vendor-document-list/ship/import-from-dolce-button.tsx
index dfbd0600..ec5320f4 100644
--- a/lib/vendor-document-list/ship/import-from-dolce-button.tsx
+++ b/lib/vendor-document-list/ship/import-from-dolce-button.tsx
@@ -421,40 +421,35 @@ export function ImportFromDOLCEButton({
}, [fetchAllImportStatus])
// 자동 동기화 실행 (기존 useEffect들 다음에 추가)
- React.useEffect(() => {
- // 조건: 가져오기 가능하고, 동기화할 항목이 있고, 현재 진행중이 아닐 때
- if (canImport && totalChanges > 0 && !isImporting && !isDialogOpen) {
+ // React.useEffect(() => {
+ // // 조건: 가져오기 가능하고, 동기화할 항목이 있고, 현재 진행중이 아닐 때
+ // if (canImport && totalChanges > 0 && !isImporting && !isDialogOpen) {
- // 상태 로딩이 완료된 후 잠깐 대기 (사용자가 상태를 확인할 수 있도록)
- const timer = setTimeout(() => {
- console.log(`🔄 자동 동기화 시작: ${totalChanges}개 항목`)
+ // // 상태 로딩이 완료된 후 잠깐 대기 (사용자가 상태를 확인할 수 있도록)
+ // const timer = setTimeout(() => {
+ // console.log(`🔄 자동 동기화 시작: ${totalChanges}개 항목`)
- // 동기화 시작 알림
- toast.info(
- '새로운 변경사항이 발견되어 자동 동기화를 시작합니다',
- {
- description: `총 ${totalChanges}개 항목 (문서/리비전/첨부파일)`,
- duration: 3000
- }
- )
+ // // 동기화 시작 알림
+ // toast.info(
+ // '새로운 변경사항이 발견되어 자동 동기화를 시작합니다',
+ // {
+ // description: `총 ${totalChanges}개 항목 (문서/리비전/첨부파일)`,
+ // duration: 3000
+ // }
+ // )
- // 자동으로 다이얼로그 열고 동기화 실행
- setIsDialogOpen(true)
+ // // 자동으로 다이얼로그 열고 동기화 실행
+ // setIsDialogOpen(true)
- // 잠깐 후 실제 동기화 시작 (다이얼로그가 열리는 시간)
- setTimeout(() => {
- handleImport()
- }, 500)
- }, 1500) // 1.5초 대기
-
- return () => clearTimeout(timer)
- }
- }, [canImport, totalChanges, isImporting, isDialogOpen, handleImport])
-
- // 로딩 중이거나 projectIds가 없으면 버튼을 표시하지 않음
- if (projectIds.length === 0) {
- return null
- }
+ // // 잠깐 후 실제 동기화 시작 (다이얼로그가 열리는 시간)
+ // setTimeout(() => {
+ // handleImport()
+ // }, 500)
+ // }, 1500) // 1.5초 대기
+
+ // return () => clearTimeout(timer)
+ // }
+ // }, [canImport, totalChanges, isImporting, isDialogOpen, handleImport])
return (
<>