Sort Order Fix on Volume Detail Page (#3216)
This commit is contained in:
parent
ee253820f6
commit
0a13cc8454
12 changed files with 131 additions and 103 deletions
|
@ -812,7 +812,7 @@ export class MangaReaderComponent implements OnInit, AfterViewInit, OnDestroy {
|
|||
&& (this.readerService.imageUrlToChapterId(img.src) == chapterId || this.readerService.imageUrlToChapterId(img.src) === -1)
|
||||
);
|
||||
|
||||
console.log('Requesting page ', pageNum, ' found page: ', img, ' and app is requesting new image? ', forceNew);
|
||||
//console.log('Requesting page ', pageNum, ' found page: ', img, ' and app is requesting new image? ', forceNew);
|
||||
if (!img || forceNew) {
|
||||
img = new Image();
|
||||
img.src = this.getPageUrl(pageNum, chapterId);
|
||||
|
|
|
@ -118,7 +118,8 @@ export class GroupedTypeaheadComponent implements OnInit {
|
|||
|
||||
|
||||
@HostListener('window:click', ['$event'])
|
||||
handleDocumentClick(event: any) {
|
||||
handleDocumentClick(event: MouseEvent) {
|
||||
console.log('click: ', event)
|
||||
this.close();
|
||||
|
||||
}
|
||||
|
@ -197,7 +198,7 @@ export class GroupedTypeaheadComponent implements OnInit {
|
|||
}
|
||||
|
||||
toggleIncludeFiles(val: boolean) {
|
||||
const firstRun = val === false && val === this.includeChapterAndFiles;
|
||||
const firstRun = !val && val === this.includeChapterAndFiles;
|
||||
|
||||
this.includeChapterAndFiles = val;
|
||||
this.inputChanged.emit({value: this.searchTerm, includeFiles: this.includeChapterAndFiles});
|
||||
|
|
|
@ -666,7 +666,6 @@ export class VolumeDetailComponent implements OnInit {
|
|||
const chaptersWithProgress = this.volume.chapters.filter(c => c.pagesRead < c.pages);
|
||||
if (chaptersWithProgress.length > 0 && this.volume.chapters.length > 1) {
|
||||
this.currentlyReadingChapter = chaptersWithProgress[0];
|
||||
console.log('Updating currentlyReading chapter', this.currentlyReadingChapter)
|
||||
this.cdRef.markForCheck();
|
||||
} else {
|
||||
this.currentlyReadingChapter = undefined;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue