diff --git a/frontend/src/components/admin/account/AccountTestModal.vue b/frontend/src/components/admin/account/AccountTestModal.vue index 619a2ba3..2cb1c5a5 100644 --- a/frontend/src/components/admin/account/AccountTestModal.vue +++ b/frontend/src/components/admin/account/AccountTestModal.vue @@ -15,14 +15,7 @@
- - - +
{{ account.name }}
@@ -70,32 +63,11 @@ >
- - - + {{ t('admin.accounts.readyToTest') }}
- - - - + {{ t('admin.accounts.connectingToApi') }}
@@ -114,28 +86,14 @@ v-if="status === 'success'" class="mt-3 flex items-center gap-2 border-t border-gray-700 pt-3 text-green-400" > - - - + {{ t('admin.accounts.testCompleted') }}
- - - + {{ errorMessage }}
@@ -147,14 +105,7 @@ class="absolute right-2 top-2 rounded-lg bg-gray-800/80 p-1.5 text-gray-400 opacity-0 transition-all hover:bg-gray-700 hover:text-white group-hover:opacity-100" :title="t('admin.accounts.copyOutput')" > - - - + @@ -162,26 +113,12 @@
- - - + {{ t('admin.accounts.testModel') }}
- - - + {{ t('admin.accounts.testPrompt') }}
@@ -210,54 +147,15 @@ : 'bg-primary-500 text-white hover:bg-primary-600' ]" > - - - - - - - - - - - + name="refresh" + size="sm" + class="animate-spin" + :stroke-width="2" + /> + + {{ status === 'connecting' @@ -278,6 +176,7 @@ import { ref, watch, nextTick } from 'vue' import { useI18n } from 'vue-i18n' import BaseDialog from '@/components/common/BaseDialog.vue' import Select from '@/components/common/Select.vue' +import { Icon } from '@/components/icons' import { useClipboard } from '@/composables/useClipboard' import { adminAPI } from '@/api/admin' import type { Account, ClaudeModel } from '@/types'