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> |
||
|---|---|---|
| .. | ||
| admin | ||
| approvals | ||
| dashboard | ||
| history | ||
| inventory | ||
| my-orders | ||
| payments | ||
| po | ||
| profile | ||
| layout.tsx | ||