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:
parent
2f73d3d42d
commit
54b5641947
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user