Display workspace ID in select subtitle when creating token (#8407)

This commit is contained in:
Diego Imbert
2026-03-17 12:33:11 +00:00
committed by GitHub
parent 8cd2d06f01
commit 08215c708b
@@ -44,7 +44,6 @@
displayCreateToken = true
}: Props = $props()
let newToken = $state<string | undefined>(undefined)
let newMcpToken = $state<string | undefined>(undefined)
let newTokenExpiration = $state<number | undefined>(undefined)
@@ -464,11 +463,10 @@
<div>
<span class="block mb-1 text-emphasis text-xs font-semibold">Workspace</span>
<select bind:value={newTokenWorkspace} disabled={workspaces.length === 1} class="w-full">
{#each workspaces as workspace}
<option value={workspace.id}>{workspace.name}</option>
{/each}
</select>
<Select
bind:value={newTokenWorkspace}
items={workspaces.map((w) => ({ label: w.name, value: w.id, subtitle: w.id }))}
/>
</div>
{/if}