diff options
| author | Fuwn <[email protected]> | 2023-11-05 17:53:07 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-11-05 17:53:07 -0800 |
| commit | 914623a2fc0804fd74b72cbddbe0d44d07a9e4ce (patch) | |
| tree | 4998f4e780e81afbf61e67079432490128676b33 /src/lib/List | |
| parent | feat(list): display title as compliment (diff) | |
| download | due.moe-914623a2fc0804fd74b72cbddbe0d44d07a9e4ce.tar.xz due.moe-914623a2fc0804fd74b72cbddbe0d44d07a9e4ce.zip | |
feat(manga): display out-of-date volumes
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} |