From 92feb05a0d1d55b31e029b7c85e19a5b7d52a1e1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 11:50:46 +0000 Subject: [PATCH] Complete error handling for all save buttons Co-authored-by: naielv <109038805+naielv@users.noreply.github.com> --- src/page/pagos.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/page/pagos.js b/src/page/pagos.js index 3f978a7..ec0af79 100644 --- a/src/page/pagos.js +++ b/src/page/pagos.js @@ -1398,7 +1398,14 @@ PAGES.pagos = { document.getElementById("actionStatus").style.display = "none"; setUrlHash("pagos," + transactionId); }, SAVE_WAIT); - }).catch((e) => { console.warn('DB.put error', e); }); + }).catch((e) => { + console.warn('DB.put error', e); + // Re-enable save button on error + saveBtn.disabled = false; + saveBtn.style.opacity = "1"; + document.getElementById("actionStatus").style.display = "none"; + toastr.error("Error al actualizar la transacción"); + }); }; // Cancel button