Complete error handling for all save buttons

Co-authored-by: naielv <109038805+naielv@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-21 11:50:46 +00:00
parent 013413a01c
commit 92feb05a0d

View File

@@ -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