fix(ui): no api tokens state (#11224)

This commit is contained in:
🏔️ Peak 2026-08-12 21:53:06 +02:00 committed by GitHub
parent bc98d52104
commit fe0150cea9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -178,8 +178,10 @@ class="absolute top-1/2 right-2 flex size-5 -translate-y-1/2 items-center justif
@endif
@if ($tokens->isEmpty())
<x-empty title="No API tokens" description="Create a token when an external client needs access."
icon-name="keys" size="sm" />
<div class="p-4">
<x-empty title="No API tokens" description="Create a token when an external client needs access."
icon-name="keys" size="sm" />
</div>
@else
<div x-cloak x-show="filteredTokens.length > 0" class="data-table">
<div class="data-table-header api-tokens-table-grid">
@ -246,7 +248,7 @@ class="inline-flex h-7 items-center rounded-md px-2 text-[11px] font-medium text
@endforeach
</div>
<div x-cloak x-show="filteredTokens.length === 0">
<div x-cloak x-show="filteredTokens.length === 0" class="p-4">
<x-empty size="sm" title="No matching tokens"
description="Try a different description or permission." />
</div>