{#await repo_pull_state}
{:then state} {#if state.status == "pending" || state.status == "running"}
{:else if state.status == "success"} {:else if state.status == "failure" || state.status == "killed"} dispatch('show_logs')} on:keypress={() => dispatch('show_logs')}> {:else} {state.status} {/if} {/await}