fix: add terms/privacy checkbox to download modal, button disabled until checked

This commit is contained in:
2026-06-14 09:56:43 -04:00
parent 448a593423
commit e6a70c427e
2 changed files with 14 additions and 2 deletions

View File

@@ -244,11 +244,18 @@ function closeUserMenu(e) {
}
}
function toggleDownloadBtn() {
const cb = document.getElementById('agreeTerms');
document.getElementById('downloadConfirmBtn').disabled = !cb.checked;
}
function showDownloadModal() {
const cb = document.getElementById('agreeTerms');
cb.checked = false;
document.getElementById('downloadConfirmBtn').disabled = true;
document.getElementById('downloadModal').style.display = 'flex';
document.getElementById('downloadProgressWrap').style.display = 'none';
document.getElementById('downloadModalFooter').style.display = 'flex';
document.getElementById('downloadConfirmBtn').disabled = false;
document.getElementById('downloadConfirmBtn').innerHTML = '<i class="fas fa-download"></i> Download APK';
document.getElementById('downloadProgressBar').style.width = '0%';
document.getElementById('downloadPercent').textContent = '0%';