simplificar mensaje
This commit is contained in:
parent
f20fa1ceb0
commit
4a0db6856a
|
|
@ -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');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue