MCPcopy Create free account
hub / github.com/TQZHR/grok2api / togglePause

Function togglePause

app/static/cache/cache.js:982–998  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

980}
981
982function 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
1000function stopActiveBatch() {
1001 if (isBatchLoading) {

Callers 1

setupBatchControlsFunction · 0.85

Calls 4

setOnlineStatusFunction · 0.85
processBatchQueueFunction · 0.70
processDeleteQueueFunction · 0.70
updateBatchProgressFunction · 0.70

Tested by

no test coverage detected