diff --git a/apps/NwaifuAnime/src/app/components/detail/detail.component.html b/apps/NwaifuAnime/src/app/components/detail/detail.component.html
index 0c401c0..bc337dc 100644
--- a/apps/NwaifuAnime/src/app/components/detail/detail.component.html
+++ b/apps/NwaifuAnime/src/app/components/detail/detail.component.html
@@ -3,11 +3,25 @@
{{ detail_item.name }}
{{ detail_item.rus_name }}
- @for (chapter of chapters.data; track $index) {
-
- {{ chapter.number }}. {{ chapter.name || "Нет названия" }}
-
- }
+
+
+
+ Главы
+
+
+ @for (chapter of chapters.data; track $index) {
+
+ }
+
+
diff --git a/apps/NwaifuAnime/src/app/components/detail/detail.component.ts b/apps/NwaifuAnime/src/app/components/detail/detail.component.ts
index a831ed3..f0df833 100644
--- a/apps/NwaifuAnime/src/app/components/detail/detail.component.ts
+++ b/apps/NwaifuAnime/src/app/components/detail/detail.component.ts
@@ -27,6 +27,7 @@ export class DetailComponent implements AfterViewInit {
});
this.searchService.getChapters(url).subscribe((data) => {
this.chapters = data;
+ console.log(data);
});
}
@@ -41,13 +42,13 @@ export class DetailComponent implements AfterViewInit {
});
}
- goToReader() {
- //TODO: Not only first chapter
+ goToReader(chapter: string = "1", volume: string = "1") {
+ console.log(chapter, volume);
this.router.navigate(["/", "reader"], {
queryParams: {
url: this.detail_item?.slug_url,
- chapter: this.chapters.data[0].number,
- volume: this.chapters.data[0].volume,
+ chapter: +chapter,
+ volume: +volume,
},
});
}
diff --git a/apps/NwaifuAnime/src/app/components/header/header.component.html b/apps/NwaifuAnime/src/app/components/header/header.component.html
index 4740388..09c258e 100644
--- a/apps/NwaifuAnime/src/app/components/header/header.component.html
+++ b/apps/NwaifuAnime/src/app/components/header/header.component.html
@@ -1,5 +1,5 @@