mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-19 03:30:47 -06:00
Update usage limit dialog to indicate insufficient funds
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user