diff options
| author | Fuwn <[email protected]> | 2023-09-10 02:04:33 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-09-10 02:04:33 -0700 |
| commit | 33203994b644320262c258b35aa36f4c31a148d2 (patch) | |
| tree | 289e6514b09190882d9e4603226f07673eecd059 /src | |
| parent | refactor(anime): generalise episodes (diff) | |
| download | due.moe-33203994b644320262c258b35aa36f4c31a148d2.tar.xz due.moe-33203994b644320262c258b35aa36f4c31a148d2.zip | |
refactor(anime): generalise episodes
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/List/WatchingAnimeList.svelte | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/List/WatchingAnimeList.svelte b/src/lib/List/WatchingAnimeList.svelte index f398d78f..f22d80df 100644 --- a/src/lib/List/WatchingAnimeList.svelte +++ b/src/lib/List/WatchingAnimeList.svelte @@ -7,6 +7,7 @@ import anime from '../../stores/anime'; import lastPruneTimes from '../../stores/lastPruneTimes'; import settings from '../../stores/settings'; + import { totalEpisodes } from '$lib/anime'; export let user: AniListAuthorisation; export let identity: UserIdentity; @@ -59,10 +60,6 @@ return finalMedia; }; - const totalEpisodes = (anime: Media) => { - return anime.episodes === null ? '' : `<span style="opacity: 50%">/${anime.episodes}</span>`; - }; - const updateMedia = async (id: number, progress: number | undefined) => { fetch(`/anilist/increment?id=${id}&progress=${(progress || 0) + 1}`).then(() => { animeLists = mediaListCollection( |