{ if (o) focusFirstInput(); else onClose(); }}> {isEditing ? 'Edit' : 'Add'} Git repository {isEditing ? 'Update repository settings' : 'Add a Git repository that can be used to deploy stacks'}
{ e.preventDefault(); saveRepository(); }} class="space-y-4">
formErrors.name = undefined} /> {#if formErrors.name}

{formErrors.name}

{:else if !isEditing}

A friendly name to identify this repository

{/if}
{ formErrors.url = undefined; testResult = null; }} /> {#if formErrors.url}

{formErrors.url}

{/if}
testResult = null} />
{ formCredentialId = v === 'none' ? null : parseInt(v); testResult = null; }} > {@const selectedCred = credentials.find(c => c.id === formCredentialId)} {#if selectedCred} {@const Icon = getAuthIcon(selectedCred.authType)} {selectedCred.name} ({getAuthLabel(selectedCred.authType)}) {:else} None (public repository) {/if} None (public repository) {#each credentials as cred} {#if cred.authType === 'ssh'} {:else if cred.authType === 'password'} {:else} {/if} {cred.name} ({getAuthLabel(cred.authType)}) {/each} {#if credentials.length === 0 && !isEditing}

Add credentials for private repositories

{/if}
{#if formError}

{formError}

{/if}