Your requests
What you've asked Minstrel to add to the library.
{#if query.isError}
{:else if query.isPending}
Reading the ledger…
{:else if requests.length === 0}
Nothing requested yet.
{:else}
{#each requests as r (r.id)} {@const Icon = fallbackIcon(r.kind)} {@const href = listenHref(r)}
{r.kind}
{rowTitle(r)}
{rowMeta(r)}
{#if r.imported_album_count > 0 || r.imported_track_count > 0}
{#if r.kind === 'artist'} {r.imported_album_count} {r.imported_album_count === 1 ? 'album' : 'albums'} · {r.imported_track_count} {r.imported_track_count === 1 ? 'track' : 'tracks'} ingested {:else if r.kind === 'album'} {r.imported_track_count} {r.imported_track_count === 1 ? 'track' : 'tracks'} ingested {:else} Track ingested {/if}
{/if} {#if r.status === 'rejected' && r.notes}
{r.notes}
{/if}
{#if r.status === 'pending'}
onCancel(r.id)} >
Cancel
{:else if r.status === 'completed' && href}
Listen
{/if}
{/each}
{/if}