]>
Commit | Line | Data |
---|---|---|
4635f59d C |
1 | <div> |
2 | <div class="title-page title-page-single"> | |
3 | Comments | |
4 | </div> | |
5 | ||
6 | <my-video-comment-add | |
7 | *ngIf="isUserLoggedIn()" | |
8 | [video]="video" | |
9 | (commentCreated)="onCommentThreadCreated($event)" | |
10 | ></my-video-comment-add> | |
11 | ||
7416fbf3 C |
12 | <div |
13 | class="comment-threads" | |
14 | infiniteScroll | |
15 | [infiniteScrollUpDistance]="1.5" | |
16 | [infiniteScrollDistance]="0.5" | |
17 | (scrolled)="onNearOfBottom()" | |
18 | > | |
4635f59d C |
19 | <div *ngFor="let comment of comments"> |
20 | <my-video-comment | |
21 | [comment]="comment" | |
22 | [video]="video" | |
23 | [inReplyToCommentId]="inReplyToCommentId" | |
24 | [commentTree]="threadComments[comment.id]" | |
25 | (wantedToReply)="onWantedToReply($event)" | |
26 | (resetReply)="onResetReply()" | |
27 | ></my-video-comment> | |
28 | ||
29 | <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment)" class="view-replies"> | |
30 | View all {{ comment.totalReplies }} replies | |
31 | ||
32 | <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span> | |
33 | <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader> | |
34 | </div> | |
35 | </div> | |
36 | </div> | |
37 | </div> |