fix(ui): no api tokens state (#11224)
This commit is contained in:
parent
bc98d52104
commit
fe0150cea9
1 changed files with 5 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue