pelagia-portal/App/app/(portal)
Hardik c92f136b09 fix(ui): reset pending state on success for all save/confirm buttons
Parent button components (EditVendorButton, EditAccountButton, etc.) stay
mounted even when their AdminDialog closes — so pending was never cleared
on success, causing buttons to show 'Saving...' on the next open. The
payment confirm button (no dialog) was stuck in 'Confirming...' until the
page re-render eventually unmounted it. Added setPending(false) before
setOpen/router.refresh in every success path.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-27 04:36:29 +05:30
..
admin fix(ui): reset pending state on success for all save/confirm buttons 2026-05-27 04:36:29 +05:30
approvals fix(po): tighten filters and export data 2026-05-22 17:15:03 +05:30
dashboard feat(my-orders): rename to Closed Purchase Orders, show only closed POs 2026-05-27 04:21:53 +05:30
history fix(po): tighten filters and export data 2026-05-22 17:15:03 +05:30
inventory chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
my-orders feat(my-orders): rename to Closed Purchase Orders, show only closed POs 2026-05-27 04:21:53 +05:30
payments fix(ui): reset pending state on success for all save/confirm buttons 2026-05-27 04:36:29 +05:30
po fix(ui): reset pending state on success for all save/confirm buttons 2026-05-27 04:36:29 +05:30
profile chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30
layout.tsx chore: restructure repo — flatten App/pelagia-portal to App, rename Prototype→Wireframe and Spec→Design 2026-05-18 23:18:58 +05:30