mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-22 23:17:25 +08:00
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>.