diff options
| author | Fuwn <[email protected]> | 2023-09-26 17:40:08 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-26 17:40:08 -0700 |
| commit | c94d5a24d50f37a60ceaa9f7acc5bf420229f988 (patch) | |
| tree | f2708bccb145badd9d3872e4a7765a6547ec95f7 /src/lib/List/AnimeList.svelte | |
| parent | feat(anime): component title field (diff) | |
| download | due.moe-c94d5a24d50f37a60ceaa9f7acc5bf420229f988.tar.xz due.moe-c94d5a24d50f37a60ceaa9f7acc5bf420229f988.zip | |
refactor(anime): completed as component
Diffstat (limited to 'src/lib/List/AnimeList.svelte')
| -rw-r--r-- | src/lib/List/AnimeList.svelte | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/List/AnimeList.svelte b/src/lib/List/AnimeList.svelte index dd1b69ac..03d58b1f 100644 --- a/src/lib/List/AnimeList.svelte +++ b/src/lib/List/AnimeList.svelte @@ -13,7 +13,7 @@ export let animeLists: Promise<Media[]>; export let user: AniListAuthorisation; export let identity: UserIdentity; - export let displayUnresolved: boolean; + export let displayUnresolved = false; export let title: string; </script> @@ -51,6 +51,7 @@ {anime.title.english || anime.title.romaji || anime.title.native} </a> <span style="opacity: 50%;">|</span> + <!-- {anime.mediaListEntry?.progress || 0}{@html totalEpisodes(anime)} --> {(anime.mediaListEntry || { progress: 0 }).progress}{@html totalEpisodes(anime)} <a href={'#'} @@ -61,10 +62,12 @@ () => (animeLists = cleanCache(user, identity)) )}>+</a > - [{anime.nextAiringEpisode?.episode === -1 - ? '?' - : (anime.nextAiringEpisode?.episode || 1) - 1}] - {@html airingTime(anime)} + {#if !title.includes('Completed')} + [{anime.nextAiringEpisode?.episode === -1 + ? '?' + : (anime.nextAiringEpisode?.episode || 1) - 1}] + {@html airingTime(anime)} + {/if} </li> {/each} </ul> |