Add pagination for advanced search

This commit is contained in:
Geomitron
2024-07-27 21:23:42 -05:00
parent ed1aada613
commit b6de0513dc
4 changed files with 47 additions and 16 deletions

View File

@@ -124,9 +124,7 @@ export class ResultTableComponent implements OnInit {
const table = this.resultTableDiv.nativeElement
if (this.router.url === '/browse' && table.scrollHeight - (table.scrollTop + table.clientHeight) < 100) {
// Scrolled near the bottom of the table
if (this.searchService.areMorePages && !this.searchService.searchLoading) {
this.searchService.search(this.searchService.searchControl.value || '*', true).subscribe()
}
this.searchService.getNextSearchPage()
}
}
}