{ if (o) focusFirstInput(); else onClose(); }}> {isEditing ? 'Edit' : 'Add'} Git credential {isEditing ? 'Update credential settings' : 'Create a new credential for accessing Git repositories'}
{ e.preventDefault(); saveCredential(); }} class="space-y-4">
errors.name = undefined} /> {#if errors.name}

{errors.name}

{:else if !isEditing}

A friendly name to identify this credential

{/if}
formAuthType = val as 'password' | 'ssh'} />
{#if formAuthType === 'password'}
errors.password = undefined} /> {#if errors.password}

{errors.password}

{:else if isEditing && credential?.hasPassword}

Current password is set. Leave empty to keep it.

{/if}
{:else if formAuthType === 'ssh'}
{#if errors.sshKey}

{errors.sshKey}

{:else if isEditing && credential?.hasSshKey}

Current SSH key is set. Leave empty to keep it.

{/if}
{/if}
{#if formError}

{formError}

{/if}