mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat(frontend:api-keys): display the count of API keys in the header and adjust empty state condition
This commit is contained in:
@@ -707,7 +707,7 @@
|
|||||||
<div class="rounded border border-neutral-800 bg-neutral-900/50 p-6">
|
<div class="rounded border border-neutral-800 bg-neutral-900/50 p-6">
|
||||||
<div class="mb-6 flex items-start justify-between">
|
<div class="mb-6 flex items-start justify-between">
|
||||||
<div>
|
<div>
|
||||||
<h2 class="text-xl font-semibold text-neutral-100">API Keys</h2>
|
<h2 class="text-xl font-semibold text-neutral-100">API Keys ({apiKeys.length}/10)</h2>
|
||||||
<p class="mt-1 text-sm text-neutral-400">
|
<p class="mt-1 text-sm text-neutral-400">
|
||||||
Manage API keys for accessing Sharpbin programmatically.
|
Manage API keys for accessing Sharpbin programmatically.
|
||||||
</p>
|
</p>
|
||||||
@@ -813,9 +813,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div class="space-y-2">
|
<div class="space-y-2">
|
||||||
{#if apiKeys.length === 0}
|
{#if apiKeys.length !== 0}
|
||||||
<p class="py-4 text-center text-sm text-neutral-500">No API keys found.</p>
|
|
||||||
{:else}
|
|
||||||
{#each apiKeys as key (key.uuid)}
|
{#each apiKeys as key (key.uuid)}
|
||||||
<div class="flex items-center justify-between rounded bg-neutral-800/50 p-3">
|
<div class="flex items-center justify-between rounded bg-neutral-800/50 p-3">
|
||||||
<div class="flex flex-col gap-1">
|
<div class="flex flex-col gap-1">
|
||||||
|
|||||||
Reference in New Issue
Block a user