{#each gitIntegrationProviders as provider}
selectProvider(provider)}>
{providerLabel(provider)}
{providerDescription(provider)}
{/each}
{providerLabel(selected)}
{providerDescription(selected)}
{#if selected === "azure-devops"}
{settings.azureDevOpsOrganizations.length} {isGerman ? "Orgas" : "orgs"}
{:else}
{#if currentConfigured()}
{:else}
{/if}{currentConfigured() ? (isGerman ? "Konfiguriert" : "Configured") : (isGerman ? "Nicht verbunden" : "Not connected")}
{/if}
{#if selected === "azure-devops"}
{isGerman ? "Organisationen" : "Organizations"}
{isGerman ? "Jede Organisation verwendet einen eigenen Token." : "Each organization uses its own token."}
{isGerman ? "Hinzufügen" : "Add"}
{#if settings.azureDevOpsOrganizations.length === 0}
{isGerman ? "Noch keine Azure-DevOps-Organisation angelegt." : "No Azure DevOps organization has been added yet."}
{isGerman ? "Erste Organisation anlegen" : "Add first organization"}
{:else}
{#each settings.azureDevOpsOrganizations as organization (organization.id)}
{ selectedAzureOrganizationId = organization.id; showToken = false; }}>
{organizationDisplayName(organization)}
{organization.baseUrl}
removeAzureOrganization(organization)} title={isGerman ? "Organisation entfernen" : "Remove organization"} aria-label={`${organizationDisplayName(organization)} ${isGerman ? "entfernen" : "remove"}`}>
{/each}
{/if}
{/if} {#if current} {#if selected === "azure-devops"}
{isGerman ? "Anzeigename" : "Display name"}
updateCurrent({ name: event.currentTarget.value })} placeholder={isGerman ? "z. B. Contoso Platform" : "e.g. Contoso Platform"} />
{/if}
{selected === "azure-devops" ? (isGerman ? "Organisations-URL" : "Organization URL") : (isGerman ? "Server-URL" : "Server URL")}
updateCurrent({ baseUrl: event.currentTarget.value })} placeholder={baseUrlPlaceholder()} spellcheck="false" inputmode="url" />
{isGerman ? "Basis-URL ohne Repository-Pfad." : "Base URL without a repository path."}
{isGerman ? "Benutzername oder E-Mail" : "Username or email"}
updateCurrent({ username: event.currentTarget.value })} autocomplete="off" placeholder={selected === "azure-devops" ? "name@example.com" : (isGerman ? "Benutzername" : "Username")} spellcheck="false" />
Personal Access Token
setToken(event.currentTarget.value)} autocomplete="new-password" placeholder={current.tokenStored && !pendingRemoval(selected, currentAccountId) ? (isGerman ? "Token ist sicher gespeichert" : "Token is stored securely") : (isGerman ? "Token einfügen" : "Paste token")} spellcheck="false" />
{ showToken = !showToken; }} title={showToken ? (isGerman ? "Token ausblenden" : "Hide token") : (isGerman ? "Token anzeigen" : "Show token")} aria-label={showToken ? (isGerman ? "Token ausblenden" : "Hide token") : (isGerman ? "Token anzeigen" : "Show token")}>{#if showToken}
{:else}
{/if}
{isGerman ? "Der Token wird separat im Schlüsselbund des Betriebssystems gespeichert." : "The token is stored separately in the operating system keychain."}
{selected === "azure-devops" ? (isGerman ? "Organisation aktivieren" : "Enable organization") : (isGerman ? "Integration aktivieren" : "Enable integration")}
{isGerman ? "Für Hosting- und Clone-Funktionen verwenden." : "Use for hosting and clone features."}
updateCurrent({ enabled: event.currentTarget.checked })} />
{#if current.tokenStored && !pendingRemoval(selected, currentAccountId)}
{isGerman ? "Gespeicherten Token entfernen" : "Remove stored token"}
{/if}
{/if}