Fixing load more comments on infinite scroll (#2535)

* Fixing load more comments on infinite scroll

* Requested changes for load more comments fix

* Removing extra space
pull/2539/head
BitTube 2020-03-04 13:03:37 +00:00 committed by GitHub
parent 62df8cc1f0
commit 34102d19a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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()
}
}