Keep cache button clickable after completion

Button now shows 'Refresh Cache' and stays enabled after download
completes, allowing users to re-download/refresh the cache.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-30 01:55:07 -05:00
parent 014fb0b2fa
commit 371f3fc5ac
+2 -2
View File
@@ -794,8 +794,8 @@
cacheProgress.classList.add('active');
progressFill.style.width = '100%';
progressText.innerHTML = '<span class="cache-complete">✓ Download complete! ' + data.total.toLocaleString() + ' pages available offline.</span>';
startCacheBtn.textContent = 'Downloaded!';
startCacheBtn.disabled = true;
startCacheBtn.textContent = 'Refresh Cache';
startCacheBtn.disabled = false;
// Refresh the cache list
setTimeout(checkCaches, 500);
} else if (data.type === 'CACHE_ERROR') {