{#if view === 'browse'} {}} onClose={handleClose} /> {:else} !o && handleClose()}> Select stacks to adopt to {envName} {scanResults.length} stack(s) found. Select which ones to adopt into {envName}.
{#each scanResults as stack} {@const isSelected = stackSelections.get(stack.composePath)} {@const countsMismatch = stack.running && stack.serviceCount && stack.containerCount !== stack.serviceCount}
toggleStack(stack.composePath)} class="mt-0.5" />
{stack.name} {#if stack.serviceCount} {stack.serviceCount} service{stack.serviceCount !== 1 ? 's' : ''} {/if} {#if stack.running} {stack.containerCount} running {/if}

{stack.composePath}

{#if stack.envPath}

.env: {stack.envPath}

{/if}
{/each}
{#if isRemoteEnv}
These compose files are on the Dockhand host, not on {envName}. Docker commands will be sent to {envName} via Hawser, but the files are managed locally.
{/if}
What happens when you adopt: Dockhand will track these compose files, letting you edit, start, and stop the stacks from the UI. Your files stay in their current location.
{selectedCount} of {scanResults.length} selected
{/if} Adopt this stack? Review the compose file before adopting. {#if previewFile}
Stack: {previewFile.path.replace(/\/[^/]+$/, '').split('/').pop() || 'unknown'} {#if previewServiceCount > 0} {previewServiceCount} service{previewServiceCount !== 1 ? 's' : ''} {/if}
{previewFile.path}
{#if loadingPreview}
{:else if previewContent} {/if}
{#if isRemoteEnv}
This compose file is on the Dockhand host, not on {envName}. Docker commands will be sent to {envName} via Hawser, but the file is managed locally.
{/if}
What happens when you adopt: Dockhand will track this compose file, letting you edit, start, and stop the stack from the UI. Your files stay in their current location.
{/if}