{#if workspaceIds.length === 0 && !showAddWorkspace}

No workspace overrides configured.

{/if}
{#each workspaceIds as wsId (wsId)} {@const wsName = workspaces.find((w) => w.id === wsId)?.name} {@const isExpanded = expandedWorkspaces.has(wsId)} {@const wsSettings = registries[wsId] ?? {}} {@const activeKeys = Object.keys(wsSettings)} {@const activeSettings = WORKSPACE_REGISTRY_SETTINGS.filter((s) => activeKeys.includes(s.key) )}
{#if isExpanded}
{#each activeSettings as setting (setting.key)} {@const currentValue = wsSettings[setting.key]}
{setting.label}
{#if setting.fieldType === 'boolean'} currentValue ?? false, (v) => updateSetting(wsId, setting.key, v, true) } /> {:else if setting.fieldType === 'codearea'} currentValue ?? '', (v) => updateSetting(wsId, setting.key, v)} autoHeight fixedOverflowWidgets={false} /> {:else if setting.fieldType === 'password'} currentValue ?? '', (v) => updateSetting(wsId, setting.key, v) } placeholder={setting.placeholder} /> {:else} updateSetting(wsId, setting.key, e.currentTarget.value)} /> {/if}
{/each} {#if getAvailableFields(wsId).length > 0} {/if}
{/if}
{/each}
{#if showAddWorkspace}
{#if availableWorkspaces.length > 0} {:else} {/if}
{:else}
{/if}