simplificar mensaje

This commit is contained in:
Luis Guzmán 2026-03-26 23:47:39 -06:00
parent f20fa1ceb0
commit 4a0db6856a
1 changed files with 2 additions and 2 deletions

View File

@ -207,7 +207,7 @@
// 5. Deletion Logic // 5. Deletion Logic
function deleteZim(event, zimId) { function deleteZim(event, zimId) {
event.stopPropagation(); event.stopPropagation();
if(confirm(`⚠️ Are you absolutely sure you want to DELETE the file ${zimId}?\n\nThis will update the Kiwix database.`)){ if(confirm(`⚠️ Do want to DELETE the file ${zimId}?\n\nThis will update the Kiwix database.`)){
// UX: Change button to "Deleting..." and disable it // UX: Change button to "Deleting..." and disable it
const btnDel = document.getElementById(`btn-del-${zimId}`); const btnDel = document.getElementById(`btn-del-${zimId}`);
@ -223,7 +223,7 @@
// Cancel Button // Cancel Button
btnCancelDownload.addEventListener('click', () => { btnCancelDownload.addEventListener('click', () => {
if(confirm('⚠️ Are you completely sure you want to CANCEL the ongoing download?\n\nIncomplete files will be wiped from your hard drive.')) { if(confirm('⚠️ Do you want to CANCEL the ongoing download?\n\nIncomplete files will be wiped from your hard drive.')) {
btnCancelDownload.disabled = true; btnCancelDownload.disabled = true;
btnCancelDownload.textContent = '⏳ Aborting...'; btnCancelDownload.textContent = '⏳ Aborting...';
socket.emit('cancel_kiwix_download'); socket.emit('cancel_kiwix_download');