Files
Nariman Jelveh ef5a78e5bd feat(puter-js): offer Add Credits in the Low Balance dialog to accounts with a plan (#4577)
A call refused for credit on a website shows the Low Balance dialog,
whose only action was Upgrade. An account that already has a plan can
buy add-on credit instead, which is quicker and cheaper than changing
plans. For such an account the dialog now leads with Add Credits, which
shows the top-up as the user menu's item does, and keeps Upgrade Plan
beside it. Accounts without a plan, team seats and every other refusal
see the dialog as before.

The rule for who can top up moves into lib/topUp.js, shared with
<puter-user-menu>.
2026-11-20 10:07:52 -07:00
..