From 34102d19a1b6964cd2ec747a934e2bff3962bcce Mon Sep 17 00:00:00 2001 From: BitTube Date: Wed, 4 Mar 2020 13:03:37 +0000 Subject: [PATCH] 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 --- .../videos/+video-watch/comment/video-comments.component.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.ts b/client/src/app/videos/+video-watch/comment/video-comments.component.ts index 750c09c47..a87bc16d7 100644 --- a/client/src/app/videos/+video-watch/comment/video-comments.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comments.component.ts @@ -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() } } -- 2.25.1