diff options
| author | Fuwn <[email protected]> | 2024-05-16 03:50:32 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-16 03:50:32 -0700 |
| commit | e5f5656f9d82219d5b27bf29140bfd196904ceb7 (patch) | |
| tree | 910114748135d4176f093032db508c1087dabc5f /src/lib/List/Anime/UpcomingAnimeList.svelte | |
| parent | feat(badges): move admin panel into owner panel (diff) | |
| download | due.moe-e5f5656f9d82219d5b27bf29140bfd196904ceb7.tar.xz due.moe-e5f5656f9d82219d5b27bf29140bfd196904ceb7.zip | |
feat(anime): refresh upcoming after due increment
Diffstat (limited to 'src/lib/List/Anime/UpcomingAnimeList.svelte')
| -rw-r--r-- | src/lib/List/Anime/UpcomingAnimeList.svelte | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/List/Anime/UpcomingAnimeList.svelte b/src/lib/List/Anime/UpcomingAnimeList.svelte index c58e7ad0..7e1e2462 100644 --- a/src/lib/List/Anime/UpcomingAnimeList.svelte +++ b/src/lib/List/Anime/UpcomingAnimeList.svelte @@ -11,6 +11,7 @@ import locale from '$stores/locale'; import identity from '$stores/identity'; import { injectAiringTime } from '$lib/Media/Anime/Airing/Subtitled/match'; + import revalidateAnime from '$stores/revalidateAnime'; export let user: AniListAuthorisation; @@ -72,6 +73,17 @@ return upcomingAnime; }; + + $: { + if ($revalidateAnime) { + $revalidateAnime = false; + $lastPruneTimes.anime = -1; + animeLists = mediaListCollection(user, $identity, Type.Anime, $anime, $lastPruneTimes.anime, { + addNotification, + notificationType: 'Upcoming Episodes' + }); + } + } </script> <AnimeList |