feat(desktop): allow reconfiguration of already-configured providers
Previously, configured providers only showed a checkmark with no way to reconfigure them. Now shows a "Reconfigure" button alongside the checkmark. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c24ac8a098
commit
0135951ac6
1 changed files with 14 additions and 1 deletions
|
|
@ -63,7 +63,20 @@ function ProviderCard({
|
|||
</div>
|
||||
|
||||
{provider.available ? (
|
||||
<HugeiconsIcon icon={Tick02Icon} className="size-4 text-primary" />
|
||||
<div className="flex items-center gap-2">
|
||||
<HugeiconsIcon icon={Tick02Icon} className="size-4 text-primary" />
|
||||
<Button
|
||||
size="sm"
|
||||
variant="ghost"
|
||||
className="text-xs text-muted-foreground h-auto py-1 px-2"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
onConfigure(provider)
|
||||
}}
|
||||
>
|
||||
Reconfigure
|
||||
</Button>
|
||||
</div>
|
||||
) : (
|
||||
<Button
|
||||
size="sm"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue