mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-29 08:12:56 +00:00
fix(datatables): hide the database manager role picker when there is one role
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user