Update usage limit dialog to indicate insufficient funds

This commit is contained in:
jelveh
2025-12-16 11:15:50 -08:00
parent dc78af3590
commit a3bcc488de
2 changed files with 2 additions and 2 deletions

View File

@@ -478,7 +478,7 @@ async function driverCall_ (
const isUsageLimited = resp?.metadata?.usage_limited === true;
if ( (isInsufficientFunds || isUsageLimited) && puter.env === 'web' ) {
showUsageLimitDialog('You have reached your usage limit for this account.<br>Please upgrade to continue.');
showUsageLimitDialog('Your account has not enough funding to complete this request.<br>Please upgrade to continue.');
}
// HTTP Error - unauthorized

View File

@@ -131,7 +131,7 @@ class UsageLimitDialog extends (globalThis.HTMLElement || Object) {
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>
</div>
<h2>Usage Limit Reached</h2>
<h2>Low Balance</h2>
<p class="message">${this.message}</p>
<div class="buttons">
<button class="button button-secondary" id="close-btn">Close</button>