From 1e2c754ea1813b87636c405eb10cf135a6517260 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 25 Sep 2023 21:41:53 -0700 Subject: refactor(completed): title component --- src/lib/List/Due/ListTitle.svelte | 4 +++- src/lib/List/WatchingAnimeList.svelte | 10 ++++------ 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/lib') diff --git a/src/lib/List/Due/ListTitle.svelte b/src/lib/List/Due/ListTitle.svelte index 5a37850c..2aa580d3 100644 --- a/src/lib/List/Due/ListTitle.svelte +++ b/src/lib/List/Due/ListTitle.svelte @@ -2,9 +2,11 @@ export let time: number | string = '...'; export let count: number | string = '...'; export let anime = false; + export let custom = ''; - {anime ? 'Anime' : 'Manga & Light Novels'} [{count}] {time}s + {custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count}] + {time}s diff --git a/src/lib/List/WatchingAnimeList.svelte b/src/lib/List/WatchingAnimeList.svelte index f86ede7d..02b35b01 100644 --- a/src/lib/List/WatchingAnimeList.svelte +++ b/src/lib/List/WatchingAnimeList.svelte @@ -8,6 +8,7 @@ import lastPruneTimes from '../../stores/lastPruneTimes'; import settings from '../../stores/settings'; import { cleanCache, totalEpisodes, updateMedia } from '$lib/Media/anime'; + import ListTitle from './Due/ListTitle.svelte'; export let user: AniListAuthorisation; export let identity: UserIdentity; @@ -62,16 +63,13 @@ {#await animeLists} - Completed Anime [...] ...s + {:then media} {@const cleanedMedia = cleanMedia(media)} - Completed Anime [{cleanedMedia.length}] - {endTime / 1000}s + {#if cleanedMedia.length === 0}
    @@ -112,7 +110,7 @@ {/each}
{:catch} - Upcoming Episodes [?] 0s +
  • -- cgit v1.2.3