libSQL - targetType

This commit is contained in:
Jan Prochazka
2025-03-14 15:25:15 +01:00
parent d5c9fb8dec
commit 781c426b2f
2 changed files with 23 additions and 4 deletions

View File

@@ -104,6 +104,23 @@
]}
/>
{#if $authTypes && driver?.showConnectionField('authType', $values, showConnectionFieldArgs) && driver?.authTypeFirst}
{#key $authTypes}
<FormSelectField
label={driver?.authTypeLabel ?? 'Authentication'}
data-testid="ConnectionDriverFields_authType"
name="authType"
isNative
disabled={isConnected}
defaultValue={driver?.defaultAuthTypeName}
options={$authTypes.map(auth => ({
value: auth.name,
label: auth.title,
}))}
/>
{/key}
{/if}
{#if driver?.showConnectionField('databaseFile', $values, showConnectionFieldArgs)}
{#if electron}
<FormElectronFileSelector
@@ -163,7 +180,7 @@
/>
{/if}
{#if $authTypes && driver?.showConnectionField('authType', $values, showConnectionFieldArgs)}
{#if $authTypes && driver?.showConnectionField('authType', $values, showConnectionFieldArgs) && !driver?.authTypeFirst}
{#key $authTypes}
<FormSelectField
label={driver?.authTypeLabel ?? 'Authentication'}