()
| 980 | } |
| 981 | |
| 982 | function togglePause() { |
| 983 | if (isBatchLoading) { |
| 984 | isLoadPaused = !isLoadPaused; |
| 985 | if (isLoadPaused) { |
| 986 | setOnlineStatus('已暂停', 'text-xs text-[var(--accents-4)] mt-1'); |
| 987 | } else { |
| 988 | setOnlineStatus('加载中', 'text-xs text-blue-600 mt-1'); |
| 989 | processBatchQueue(); |
| 990 | } |
| 991 | } else if (isBatchDeleting) { |
| 992 | isDeletePaused = !isDeletePaused; |
| 993 | if (!isDeletePaused) { |
| 994 | processDeleteQueue(); |
| 995 | } |
| 996 | } |
| 997 | updateBatchProgress(); |
| 998 | } |
| 999 | |
| 1000 | function stopActiveBatch() { |
| 1001 | if (isBatchLoading) { |
no test coverage detected