mirror of https://github.com/Chocobozzz/PeerTube
Fixing load more comments on infinite scroll (#2535)
* Fixing load more comments on infinite scroll * Requested changes for load more comments fix * Removing extra spacepull/2539/head
parent
62df8cc1f0
commit
34102d19a1
|
@ -192,10 +192,9 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
|
|||
return this.authService.isLoggedIn()
|
||||
}
|
||||
|
||||
onNearOfBottom () {
|
||||
this.componentPagination.currentPage++
|
||||
|
||||
onNearOfBottom () {
|
||||
if (hasMoreItems(this.componentPagination)) {
|
||||
this.componentPagination.currentPage++
|
||||
this.loadMoreThreads()
|
||||
}
|
||||
}
|
||||
|
@ -219,7 +218,6 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
|
|||
this.componentPagination.totalItems = null
|
||||
|
||||
this.syndicationItems = this.videoCommentService.getVideoCommentsFeeds(this.video.uuid)
|
||||
|
||||
this.loadMoreThreads()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue