refactor: remove unused tab from AddNewProvider and disable button based on provider status in ProviderPage

This commit is contained in:
Soulter
2025-12-16 12:26:26 +08:00
parent 764b91a5f7
commit 5431c9f46e
2 changed files with 1 additions and 5 deletions

View File

@@ -3,10 +3,6 @@
<v-card :title="tm('dialogs.addProvider.title')">
<v-card-text style="overflow-y: auto;">
<v-tabs v-model="activeProviderTab" grow>
<v-tab value="chat_completion" class="font-weight-medium px-3">
<v-icon start>mdi-message-text</v-icon>
{{ tm('dialogs.addProvider.tabs.basic') }}
</v-tab>
<v-tab value="agent_runner" class="font-weight-medium px-3">
<v-icon start>mdi-cogs</v-icon>
{{ tm('dialogs.addProvider.tabs.agentRunner') }}

View File

@@ -169,7 +169,7 @@
<v-tooltip location="top" max-width="300">
{{ tm('availability.test') }}
<template v-slot:activator="{ props }">
<v-btn icon="mdi-wrench" size="small" variant="text"
<v-btn icon="mdi-wrench" size="small" variant="text" :disabled="!entry.provider.enable"
:loading="testingProviders.includes(entry.provider.id)" v-bind="props"
@click.stop="testProvider(entry.provider)"></v-btn>
</template>