aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app
diff options
context:
space:
mode:
authorBitTube <hello@bittube.app>2020-03-04 13:03:37 +0000
committerGitHub <noreply@github.com>2020-03-04 14:03:37 +0100
commit34102d19a1b6964cd2ec747a934e2bff3962bcce (patch)
tree9ad171d71738f487228939c91034178ec974fd62 /client/src/app
parent62df8cc1f0787e60e9c697c7d2499a641af2147f (diff)
downloadPeerTube-34102d19a1b6964cd2ec747a934e2bff3962bcce.tar.gz
PeerTube-34102d19a1b6964cd2ec747a934e2bff3962bcce.tar.zst
PeerTube-34102d19a1b6964cd2ec747a934e2bff3962bcce.zip
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
Diffstat (limited to 'client/src/app')
-rw-r--r--client/src/app/videos/+video-watch/comment/video-comments.component.ts6
1 files 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 {
192 return this.authService.isLoggedIn() 192 return this.authService.isLoggedIn()
193 } 193 }
194 194
195 onNearOfBottom () { 195 onNearOfBottom () {
196 this.componentPagination.currentPage++
197
198 if (hasMoreItems(this.componentPagination)) { 196 if (hasMoreItems(this.componentPagination)) {
197 this.componentPagination.currentPage++
199 this.loadMoreThreads() 198 this.loadMoreThreads()
200 } 199 }
201 } 200 }
@@ -219,7 +218,6 @@ export class VideoCommentsComponent implements OnInit, OnChanges, OnDestroy {
219 this.componentPagination.totalItems = null 218 this.componentPagination.totalItems = null
220 219
221 this.syndicationItems = this.videoCommentService.getVideoCommentsFeeds(this.video.uuid) 220 this.syndicationItems = this.videoCommentService.getVideoCommentsFeeds(this.video.uuid)
222
223 this.loadMoreThreads() 221 this.loadMoreThreads()
224 } 222 }
225 } 223 }