From c55584a489a167df8b0e96adb0958eafb27501b1 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 29 Sep 2023 17:18:42 -0700
Subject: refactor(manga): use template

---
 src/lib/List/Template/MangaListTemplate.svelte | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'src/lib/List/Template/MangaListTemplate.svelte')

diff --git a/src/lib/List/Template/MangaListTemplate.svelte b/src/lib/List/Template/MangaListTemplate.svelte
index 9e9f25e7..9db26b3f 100644
--- a/src/lib/List/Template/MangaListTemplate.svelte
+++ b/src/lib/List/Template/MangaListTemplate.svelte
@@ -13,6 +13,7 @@
 	export let user: AniListAuthorisation;
 	export let identity: UserIdentity;
 	export let displayUnresolved: boolean;
+	export let due: boolean;
 
 	let mangaLists: Promise<Media[]>;
 	let startTime: number;
@@ -55,7 +56,7 @@
 
 		const releasingMedia = media.filter(
 			(media: Media) =>
-				media.status == 'RELEASING' &&
+				(due ? media.status === 'RELEASING' : media.status === 'FINISHED') &&
 				(media.mediaListEntry || { status: 'DROPPED' }).status !=
 					($settings.displayPausedMedia ? '' : 'PAUSED') &&
 				(media.mediaListEntry || { progress: 0 }).progress >=
-- 
cgit v1.2.3

