diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-27 10:08:52 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-27 10:08:52 +0900 |
| commit | 0b0c928d87d0928fcb2129382af106ae604e1ac3 (patch) | |
| tree | b8a66e874680e8c9dfaab9b1c43abd65fb472a95 /lib/vendor-document-list/ship/import-from-dolce-button.tsx | |
| parent | 06fa7ce6783b805d7ac7b5d62b15520254f933d8 (diff) | |
(김준회) 기존 dolce: 자동 동기화 기능 주석 처리 (버그)
Diffstat (limited to 'lib/vendor-document-list/ship/import-from-dolce-button.tsx')
| -rw-r--r-- | lib/vendor-document-list/ship/import-from-dolce-button.tsx | 55 |
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 ( <> |
