feat(web): update credits fallback alert to include new description for no API keys

- Modified the CreditsFallbackAlert component to display a different message based on the presence of API keys.
- Added a new translation key for the fallback description in both English and Chinese JSON files.
This commit is contained in:
CodingOnStar
2026-03-09 12:34:41 +08:00
parent eb9341e7ec
commit 56038e3684
3 changed files with 7 additions and 5 deletions

View File

@ -17,11 +17,11 @@ export default function CreditsFallbackAlert({ hasCredentials }: CreditsFallback
<div className="text-text-primary system-sm-medium">
{t(titleKey, { ns: 'common' })}
</div>
{hasCredentials && (
<div className="text-text-tertiary system-xs-regular">
{t('modelProvider.card.apiKeyUnavailableFallbackDescription', { ns: 'common' })}
</div>
)}
<div className="text-text-tertiary system-xs-regular">
{t(hasCredentials
? 'modelProvider.card.apiKeyUnavailableFallbackDescription'
: 'modelProvider.card.noApiKeysFallbackDescription', { ns: 'common' })}
</div>
</div>
</div>
)