Add error message for photo attachment save failure

Co-authored-by: naielv <109038805+naielv@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-21 11:54:51 +00:00
parent f287eb63f6
commit 7d5fe84b3a

View File

@@ -185,12 +185,14 @@ PAGES.personas = {
document.getElementById("actionStatus").style.display = "none"; document.getElementById("actionStatus").style.display = "none";
guardarBtn.disabled = false; guardarBtn.disabled = false;
guardarBtn.style.opacity = "1"; guardarBtn.style.opacity = "1";
toastr.error("Error al guardar la foto");
}); });
}).catch((e) => { }).catch((e) => {
console.warn('DB.put error', e); console.warn('DB.put error', e);
document.getElementById("actionStatus").style.display = "none"; document.getElementById("actionStatus").style.display = "none";
guardarBtn.disabled = false; guardarBtn.disabled = false;
guardarBtn.style.opacity = "1"; guardarBtn.style.opacity = "1";
toastr.error("Error al guardar la persona");
}); });
}; };
document.getElementById(btn_ver_monedero).onclick = () => { document.getElementById(btn_ver_monedero).onclick = () => {