feat: mise à jour de la gestion de la disponibilité des chapitres dans les composants MangaChapter et MangaDetails, remplaçant isDownloaded par isAvailable pour une meilleure clarté

This commit is contained in:
ext.jeremy.guillot@maxicoffee.domains
2025-03-28 15:36:34 +01:00
parent 2f73d3d42d
commit 54b5641947
2 changed files with 8 additions and 9 deletions

View File

@@ -46,14 +46,15 @@
chapters: []
});
}
volumeMap.get(volumeNumber).chapters.push({
...chapter,
isDownloaded: Boolean(chapter.cbzPath)
isAvailable: Boolean(chapter.isAvailable)
});
});
for (const volume of volumeMap.values()) {
volume.downloadedChapter = volume.chapters.filter(c => c.isDownloaded).length;
volume.downloadedChapter = volume.chapters.filter(c => c.isAvailable).length;
volume.totalChapter = volume.chapters.length;
}