Rules
{ dispatch('dirty') if (e.detail) { if (!config) { config = { enabled: true, min_workers: 3, max_workers: 10, integration: { type: 'dryrun' } } } else { config.enabled = true } } else { config = { ...(config ?? { min_workers: 3, max_workers: 10, integration: { type: 'dryrun' } }), enabled: false } } }} />
Integration
{#if config?.integration} dispatch('dirty')} bind:selected={config.integration.type} class="mb-4 mt-2" let:item > {#if config.integration.type === 'script'}
workers
{/if} {:else} {/if}