{ if (status === 'updating') e.preventDefault(); }}> Updating containers {#if vulnerabilityCriteria !== 'never'} {/if} {#if status === 'updating'} {@const activeContainer = progress.find(p => p.step !== 'done' && p.step !== 'failed' && p.step !== 'blocked')} {#if activeContainer} {getStepLabel(activeContainer.step)} {activeContainer.containerName}... ({currentIndex}/{totalCount}) {:else} Processing {currentIndex} of {totalCount} containers... {/if} {:else if status === 'complete'} Update complete {:else if status === 'error'} Update failed {:else} Preparing to update {containerIds.length} container{containerIds.length > 1 ? 's' : ''}... {/if}
Progress {currentIndex}/{totalCount}
{#if progress.length > 0}
{#each progress as item (item.containerId)} {@const StepIcon = getStepIcon(item.step)} {@const isActive = item.step !== 'done' && item.step !== 'failed' && item.step !== 'blocked'} {@const hasLogs = item.pullLogs.length > 0 || item.scanLogs.length > 0}
{item.containerName}
{#if item.error}
{item.error}
{:else if item.blockReason}
{item.blockReason}
{:else}
{getStepLabel(item.step)}
{/if}
{#if item.scannerResults && item.scannerResults.length > 0} {:else if item.scanResult}
{#if item.scanResult.critical > 0} C:{item.scanResult.critical}

{item.scanResult.critical} Critical vulnerabilities

{/if} {#if item.scanResult.high > 0} H:{item.scanResult.high}

{item.scanResult.high} High severity vulnerabilities

{/if} {#if item.scanResult.medium > 0} M:{item.scanResult.medium}

{item.scanResult.medium} Medium severity vulnerabilities

{/if} {#if item.scanResult.low > 0} L:{item.scanResult.low}

{item.scanResult.low} Low severity vulnerabilities

{/if}
{/if} {#if item.success === true} {:else if item.step === 'failed'} {:else if item.step === 'blocked'} {#if forceUpdating.has(item.containerId)} {:else} {/if} {/if} {#if hasLogs} {/if}
{#if item.showLogs && hasLogs}
{#each item.pullLogs as log}
{formatPullLog(log)}
{/each} {#if item.scanLogs.length > 0} {#if item.pullLogs.length > 0}
{/if} {#each item.scanLogs as log}
{formatScanLog(log)}
{/each} {/if}
{/if}
{/each}
{/if} {#if summary}
{/if} {#if errorMessage}
{errorMessage}
{/if}
{#if status === 'updating'} {:else} {/if}