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
This commit is contained in:
parent
62df8cc1f0
commit
34102d19a1
|
@ -193,9 +193,8 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
onNearOfBottom () {
|
onNearOfBottom () {
|
||||||
this.componentPagination.currentPage++
|
|
||||||
|
|
||||||
if (hasMoreItems(this.componentPagination)) {
|
if (hasMoreItems(this.componentPagination)) {
|
||||||
|
this.componentPagination.currentPage++
|
||||||
this.loadMoreThreads()
|
this.loadMoreThreads()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -219,7 +218,6 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
this.componentPagination.totalItems = null
|
this.componentPagination.totalItems = null
|
||||||
|
|
||||||
this.syndicationItems = this.videoCommentService.getVideoCommentsFeeds(this.video.uuid)
|
this.syndicationItems = this.videoCommentService.getVideoCommentsFeeds(this.video.uuid)
|
||||||
|
|
||||||
this.loadMoreThreads()
|
this.loadMoreThreads()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue