feat: amélioration de la navigation du Reader + correction affichage des chapitres non visibles
This commit is contained in:
parent
72d7c233f7
commit
05dd7262eb
@@ -1,5 +1,5 @@
|
||||
export class Chapter {
|
||||
constructor({ id, mangaId, number, title, pages = [], read = false, lastReadPage = 0 }) {
|
||||
constructor({ id, mangaId, number, title, pages = [], read = false, lastReadPage = 0, navigation = {} }) {
|
||||
this.id = id;
|
||||
this.mangaId = mangaId;
|
||||
this.number = number;
|
||||
@@ -7,6 +7,10 @@ export class Chapter {
|
||||
this.pages = pages;
|
||||
this.read = read;
|
||||
this.lastReadPage = lastReadPage;
|
||||
this.navigation = {
|
||||
previousChapter: navigation.previousChapter || null,
|
||||
nextChapter: navigation.nextChapter || null
|
||||
};
|
||||
}
|
||||
|
||||
static create(data) {
|
||||
|
||||
Reference in New Issue
Block a user