From 899c6a6b56b271480c310d025946f6d4de9efde0 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Fri, 6 Oct 2023 21:41:49 -0700
Subject: feat(manga): display total completed chapters

---
 src/lib/List/CleanMangaList.svelte | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/lib/List/CleanMangaList.svelte')

diff --git a/src/lib/List/CleanMangaList.svelte b/src/lib/List/CleanMangaList.svelte
index e2f4be9e..45669092 100644
--- a/src/lib/List/CleanMangaList.svelte
+++ b/src/lib/List/CleanMangaList.svelte
@@ -40,7 +40,9 @@
 				{/if}
 			</a>
 			<span style="opacity: 50%;">|</span>
-			{pendingUpdate === manga.id ? progress + 1 : progress}
+			{pendingUpdate === manga.id ? progress + 1 : progress}<span style="opacity: 50%;">
+				/{manga.chapters || '?'}
+			</span>
 			<a
 				href={'#'}
 				style={disableIncrement ? 'pointer-events: none; opacity: 50%;' : ''}
@@ -49,7 +51,7 @@
 			>
 				+
 			</a>
-			[{manga.episodes || '?'}]
+			{#if manga.episodes === manga.chapters}[{manga.episodes || '?'}]{/if}
 		</li>
 	{/each}
 </ul>
-- 
cgit v1.2.3

