diff options
author | Chocobozzz <me@florianbigard.com> | 2017-12-29 09:29:32 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2017-12-29 09:29:32 +0100 |
commit | 7416fbf3359fc0b890cba3dae9661fe450604b21 (patch) | |
tree | 9403dc7c9103326649adabfcf9abfae5d0d68692 /client/src/app/videos/+video-watch/comment/video-comments.component.html | |
parent | 80f8e364e1df4005e95c9e207d38d758794e37f6 (diff) | |
download | PeerTube-7416fbf3359fc0b890cba3dae9661fe450604b21.tar.gz PeerTube-7416fbf3359fc0b890cba3dae9661fe450604b21.tar.zst PeerTube-7416fbf3359fc0b890cba3dae9661fe450604b21.zip |
Add infinite scroll to comments
Diffstat (limited to 'client/src/app/videos/+video-watch/comment/video-comments.component.html')
-rw-r--r-- | client/src/app/videos/+video-watch/comment/video-comments.component.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/client/src/app/videos/+video-watch/comment/video-comments.component.html b/client/src/app/videos/+video-watch/comment/video-comments.component.html index 9d7581269..5c6908150 100644 --- a/client/src/app/videos/+video-watch/comment/video-comments.component.html +++ b/client/src/app/videos/+video-watch/comment/video-comments.component.html | |||
@@ -9,7 +9,13 @@ | |||
9 | (commentCreated)="onCommentThreadCreated($event)" | 9 | (commentCreated)="onCommentThreadCreated($event)" |
10 | ></my-video-comment-add> | 10 | ></my-video-comment-add> |
11 | 11 | ||
12 | <div class="comment-threads"> | 12 | <div |
13 | class="comment-threads" | ||
14 | infiniteScroll | ||
15 | [infiniteScrollUpDistance]="1.5" | ||
16 | [infiniteScrollDistance]="0.5" | ||
17 | (scrolled)="onNearOfBottom()" | ||
18 | > | ||
13 | <div *ngFor="let comment of comments"> | 19 | <div *ngFor="let comment of comments"> |
14 | <my-video-comment | 20 | <my-video-comment |
15 | [comment]="comment" | 21 | [comment]="comment" |