aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List/AnimeList.svelte
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-26 17:33:54 -0700
committerFuwn <[email protected]>2023-09-26 17:33:54 -0700
commit942d895446ffa39e97ebd8197d67bfd7d50b603e (patch)
treeb01624e0b16eff22e8fa6dbae54705a6c053420c /src/lib/List/AnimeList.svelte
parentrefactor(anime): move list to component (diff)
downloaddue.moe-942d895446ffa39e97ebd8197d67bfd7d50b603e.tar.xz
due.moe-942d895446ffa39e97ebd8197d67bfd7d50b603e.zip
feat(anime): component title field
Diffstat (limited to 'src/lib/List/AnimeList.svelte')
-rw-r--r--src/lib/List/AnimeList.svelte7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/List/AnimeList.svelte b/src/lib/List/AnimeList.svelte
index ad39cae5..dd1b69ac 100644
--- a/src/lib/List/AnimeList.svelte
+++ b/src/lib/List/AnimeList.svelte
@@ -14,16 +14,17 @@
export let user: AniListAuthorisation;
export let identity: UserIdentity;
export let displayUnresolved: boolean;
+ export let title: string;
</script>
{#await animeLists}
- <ListTitle anime />
+ <ListTitle custom={title} />
<ul><li>Loading ...</li></ul>
{:then media}
{@const cleanedMedia = cleanMedia(media, displayUnresolved)}
- <ListTitle time={endTime / 1000} count={cleanedMedia.length} anime />
+ <ListTitle time={endTime / 1000} count={cleanedMedia.length} custom={title} />
{#if cleanedMedia.length === 0}
<ul>
@@ -68,7 +69,7 @@
{/each}
</ul>
{:catch}
- <ListTitle time={0} count={'?'} anime />
+ <ListTitle time={0} count={'?'} custom={title} />
<Error />
{/await}