mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-11 11:49:50 +08:00
fix(frontend): correct provider key total
This commit is contained in:
@@ -731,7 +731,7 @@
|
|||||||
v-if="shouldPaginateKeys"
|
v-if="shouldPaginateKeys"
|
||||||
class="px-4 py-2 flex items-center justify-between text-xs text-muted-foreground mt-auto"
|
class="px-4 py-2 flex items-center justify-between text-xs text-muted-foreground mt-auto"
|
||||||
>
|
>
|
||||||
<span>{{ legacyT('共') }} {{ allKeys.length }} {{ legacyT('个') }}{{ legacyT(isKeyManagedProviderType(provider.provider_type) ? '密钥' : '账号') }}</span>
|
<span>{{ legacyT('共') }} {{ providerKeysTotal }} {{ legacyT('个') }}{{ legacyT(isKeyManagedProviderType(provider.provider_type) ? '密钥' : '账号') }}</span>
|
||||||
<div class="flex items-center gap-1.5">
|
<div class="flex items-center gap-1.5">
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
|
|||||||
+5
@@ -42,6 +42,11 @@ describe('ProviderDetailDrawer loading priorities', () => {
|
|||||||
expect(source).not.toContain(':loading="loadingProviderEndpoints || loadingProviderKeys || loadingProviderModels || loadingProviderMappingPreview"')
|
expect(source).not.toContain(':loading="loadingProviderEndpoints || loadingProviderKeys || loadingProviderModels || loadingProviderMappingPreview"')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('shows the provider-wide key total in the paginated footer', () => {
|
||||||
|
expect(source).toContain("{{ legacyT('共') }} {{ providerKeysTotal }}")
|
||||||
|
expect(source).not.toContain("{{ legacyT('共') }} {{ allKeys.length }}")
|
||||||
|
})
|
||||||
|
|
||||||
it('does not mount closed child dialogs or blur the page behind the drawer', () => {
|
it('does not mount closed child dialogs or blur the page behind the drawer', () => {
|
||||||
expect(source).toContain('class="absolute inset-0 bg-black/30"')
|
expect(source).toContain('class="absolute inset-0 bg-black/30"')
|
||||||
expect(source).not.toContain('backdrop-blur-sm')
|
expect(source).not.toContain('backdrop-blur-sm')
|
||||||
|
|||||||
Reference in New Issue
Block a user