Edit manga
{#if !session.loaded}
Loading…
{:else if !session.user}
Sign in
to edit this manga.
{:else}
Manga details
Title
*
Status
Ongoing
Completed
Authors
{#each mangaAuthors as a (a)}
removeAuthor(a)} /> {/each}
{ if (e.key === 'Enter') { e.preventDefault(); addAuthor(); } }} placeholder="Add author" maxlength="200" data-testid="manga-author-input" />
Genres
{#each genres as g (g.id)}
toggleGenre(g.id)} />
{g.name}
{/each}
Alternative titles
{#each mangaAltTitles as t (t)}
removeAltTitle(t)} /> {/each}
{ if (e.key === 'Enter') { e.preventDefault(); addAltTitle(); } }} placeholder="Add alternative title" maxlength="200" data-testid="manga-alt-input" />
Description
Cover
{#if currentCoverPath && !pendingCoverRemoval}
{:else if pendingCoverRemoval}
Cover will be removed on save.
Undo
{/if}
{#if coverFile}
Will upload: {coverFile.name} ({formatBytes(coverFile.size)})
{/if} {#if coverError}
{coverError}
{/if}
{submitting ? 'Saving…' : 'Save changes'}
Cancel
{#if mangaError}
{mangaError}
{/if}
{/if}