{#if queueStatus.isPaused}
Paused
{:else if queueStatus.isActive}
Active
{/if}
{title.toUpperCase()}
{#if jobCounts.failed > 0}
{jobCounts.failed.toLocaleString($locale)} failed
{/if} {#if jobCounts.delayed > 0}
{jobCounts.delayed.toLocaleString($locale)} delayed
{/if}
{#if subtitle}
{subtitle}
{/if}
Active
{jobCounts.active.toLocaleString($locale)}
{waitingCount.toLocaleString($locale)}
Waiting
{#if !isIdle} {#if waitingCount > 0}
dispatch('command', { command: JobCommand.Empty, force: false })} >
CLEAR
{/if} {#if queueStatus.isPaused} {@const size = waitingCount > 0 ? '24' : '48'}
dispatch('command', { command: JobCommand.Resume, force: false })} >
RESUME
{:else}
dispatch('command', { command: JobCommand.Pause, force: false })} >
PAUSE
{/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 })} >
START
{/if}