move the connection method indication to the sidebar

This commit is contained in:
Fabrice Bellamy
2026-01-20 21:07:52 +01:00
parent 393b017ddf
commit 1a0d0446f3
2 changed files with 14 additions and 10 deletions
+14 -6
View File
@@ -120,11 +120,19 @@
>Device Status</span
>
{#if device.connected}
<Badge
variant="default"
class="bg-green-600 hover:bg-green-600 text-[10px] px-1.5 h-5"
>Online</Badge
>
{#if device.method === "FIDO"}
<Badge
variant="default"
class="bg-amber-500 hover:bg-amber-500 text-[10px] px-1.5 h-5"
>Online - Fido</Badge
>
{:else}
<Badge
variant="default"
class="bg-green-600 hover:bg-green-600 text-[10px] px-1.5 h-5"
>Online</Badge
>
{/if}
{:else if device.error}
<Badge
variant="destructive"
@@ -165,7 +173,7 @@
<RefreshCw class="h-4 w-4 {device.loading ? 'animate-spin' : ''}" />
</Button>
<div
class={`h-2 w-2 rounded-full ${device.connected ? "bg-green-500" : device.error ? "bg-amber-500" : "bg-red-500"}`}
class={`h-2 w-2 rounded-full ${device.connected ? (device.method === "FIDO" ? "bg-amber-500" : "bg-green-500") : device.error ? "bg-amber-500" : "bg-red-500"}`}
></div>
</div>
</Sidebar.Footer>
-4
View File
@@ -60,10 +60,6 @@
<p class="text-muted-foreground">Product Name</p>
<p class="font-medium truncate">{device.config.productName}</p>
</div>
<div class="space-y-1">
<p class="text-muted-foreground">Connection Method</p>
<Badge variant="outline" class="font-mono">{device.method}</Badge>
</div>
</div>
<Separator />