fix(datatables): hide the database manager role picker when there is one role

This commit is contained in:
Diego Imbert
2026-08-24 09:25:42 +02:00
parent 004b73ff37
commit 326fb5e5cb
@@ -262,7 +262,9 @@
size="md"
/>
{/if}
{#if usableRoles.current?.enabled && roleItems.length > 0}
<!-- A single usable role is not a choice: the picker would only restate
what the connection already is. -->
{#if usableRoles.current?.enabled && roleItems.length > 1}
<Select
transformInputSelectedText={(s) => `Role: ${s}`}
items={roleItems}