forked from farhoodlabs/paperclip
fix(ui): move reinstall button to end — power, reload, remove, reinstall
This commit is contained in:
@@ -93,28 +93,6 @@ function AdapterRow({
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2 shrink-0">
|
<div className="flex items-center gap-2 shrink-0">
|
||||||
<Button
|
|
||||||
variant="outline"
|
|
||||||
size="icon-sm"
|
|
||||||
className="h-8 w-8"
|
|
||||||
title={adapter.disabled ? "Show in agent menus" : "Hide from agent menus"}
|
|
||||||
disabled={isToggling}
|
|
||||||
onClick={() => onToggle(adapter.type, !adapter.disabled)}
|
|
||||||
>
|
|
||||||
<Power className={cn("h-4 w-4", !adapter.disabled ? "text-green-600" : "text-muted-foreground")} />
|
|
||||||
</Button>
|
|
||||||
{onReload && (
|
|
||||||
<Button
|
|
||||||
variant="outline"
|
|
||||||
size="icon-sm"
|
|
||||||
className="h-8 w-8"
|
|
||||||
title="Reload adapter (hot-swap)"
|
|
||||||
disabled={isReloading}
|
|
||||||
onClick={() => onReload(adapter.type)}
|
|
||||||
>
|
|
||||||
<RefreshCw className={cn("h-4 w-4", isReloading && "animate-spin")} />
|
|
||||||
</Button>
|
|
||||||
)}
|
|
||||||
{onReinstall && (
|
{onReinstall && (
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
@@ -127,6 +105,28 @@ function AdapterRow({
|
|||||||
<Download className={cn("h-4 w-4", isReinstalling && "animate-bounce")} />
|
<Download className={cn("h-4 w-4", isReinstalling && "animate-bounce")} />
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
|
{onReload && (
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="icon-sm"
|
||||||
|
className="h-8 w-8"
|
||||||
|
title="Reload adapter (hot-swap)"
|
||||||
|
disabled={isReloading}
|
||||||
|
onClick={() => onReload(adapter.type)}
|
||||||
|
>
|
||||||
|
<RefreshCw className={cn("h-4 w-4", isReloading && "animate-spin")} />
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
|
<Button
|
||||||
|
variant="outline"
|
||||||
|
size="icon-sm"
|
||||||
|
className="h-8 w-8"
|
||||||
|
title={adapter.disabled ? "Show in agent menus" : "Hide from agent menus"}
|
||||||
|
disabled={isToggling}
|
||||||
|
onClick={() => onToggle(adapter.type, !adapter.disabled)}
|
||||||
|
>
|
||||||
|
<Power className={cn("h-4 w-4", !adapter.disabled ? "text-green-600" : "text-muted-foreground")} />
|
||||||
|
</Button>
|
||||||
{canRemove && (
|
{canRemove && (
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
Reference in New Issue
Block a user