c.local)} onSubmit={(c: MachineConnection) => { if (editMachineIdx !== null) { updateMachineConnection(editMachineIdx, c); editMachineIdx = null; } else { addMachineConnection(c); } }} onDelete={() => { if (editMachineIdx !== null) { removeMachineConnection(editMachineIdx); editMachineIdx = null; } }} /> {#if showMachine && machineConnection} {/if}
{ updateHandler(); }} >

{$i18n.t('settings.admin.integrations.title')}

{#if !loaded}
{/if}
{$i18n.t('settings.admin.integrations.externalToolServers.label')}
{#each servers ?? [] as server, idx} { updateHandler(); }} onDelete={() => { servers = (servers ?? []).filter((_, i) => i !== idx); updateHandler(); }} /> {/each}
{#if (servers ?? []).length === 0}
{servers === null ? $i18n.t('Failed to load connections') : $i18n.t('No tool server connections configured.')}
{/if}
{$i18n.t('settings.admin.integrations.openTerminal.label')}
↗
{#each machineConnections ?? [] as connection, idx} {@const server = writable.find((c) => c.id === connection.id)}
{#if server} {/if} { machineConnections = (machineConnections ?? []).map((c, i) => i === idx ? { ...c, enabled: !(c?.enabled !== false) } : c ); saveMachines(); }} />
{#if server} {#each machinesOf($machines, server.id) as machine (machine.id)}
{/each} {/if} {/each}
{#if (machineConnections ?? []).length === 0}
{machineConnections === null ? $i18n.t('Failed to load machines') : $i18n.t('No machines configured.')}
{/if}
{#if $config?.features?.enable_apps} {/if}