{#if queueStatus.isPaused} {$t('paused')} {:else if queueStatus.isActive} {$t('active')} {/if}
{#if jobCounts.failed > 0}
{$t('admin.jobs_failed', { values: { jobCount: jobCounts.failed.toLocaleString($locale) } })} dispatch('command', { command: JobCommand.ClearFailed, force: false })} />
{/if} {#if jobCounts.delayed > 0} {$t('admin.jobs_delayed', { values: { jobCount: jobCounts.delayed.toLocaleString($locale) } })} {/if}
{#if subtitle}
{subtitle}
{/if} {#if description}
{/if}

{$t('active')}

{jobCounts.active.toLocaleString($locale)}

{waitingCount.toLocaleString($locale)}

{$t('waiting')}

{#if disabled} dispatch('command', { command: JobCommand.Start, force: false })} > {$t('disabled').toUpperCase()} {:else if !isIdle} {#if waitingCount > 0} dispatch('command', { command: JobCommand.Empty, force: false })}> {$t('clear').toUpperCase()} {/if} {#if queueStatus.isPaused} {@const size = waitingCount > 0 ? '24' : '48'} dispatch('command', { command: JobCommand.Resume, force: false })} > {$t('resume').toUpperCase()} {:else} dispatch('command', { command: JobCommand.Pause, force: false })} > {$t('pause').toUpperCase()} {/if} {:else if allowForceCommand} dispatch('command', { command: JobCommand.Start, force: true })}> {allText} dispatch('command', { command: JobCommand.Start, force: false })} > {missingText} {:else} dispatch('command', { command: JobCommand.Start, force: false })} > {$t('start').toUpperCase()} {/if}