mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-18 18:10:37 +08:00
refactor: remove unused tab from AddNewProvider and disable button based on provider status in ProviderPage
This commit is contained in:
@@ -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') }}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user