diff options
Diffstat (limited to 'src/lib/List')
| -rw-r--r-- | src/lib/List/CleanMangaList.svelte | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/List/CleanMangaList.svelte b/src/lib/List/CleanMangaList.svelte index f85cc47b..a046ecc0 100644 --- a/src/lib/List/CleanMangaList.svelte +++ b/src/lib/List/CleanMangaList.svelte @@ -1,5 +1,6 @@ <script lang="ts"> import type { Media } from '$lib/AniList/media'; + import { volumeCount } from '$lib/Media/manga'; import settings from '../../stores/settings'; import ListTitle from './ListTitle.svelte'; @@ -66,6 +67,14 @@ </a> {#if due || manga.episodes !== manga.chapters} [{manga.episodes || '?'}] + {#await volumeCount(manga) then volumes} + {@const volumeProgress = manga.mediaListEntry?.progressVolumes} + {#if volumes !== null && (volumeProgress || 0) < volumes} + <span style="color: lightcoral;"> + Vol. {volumeProgress} → {volumes} + </span> + {/if} + {/await} {/if} </li> {/each} |