2 <div class="title-page title-page-single">
6 <ng-template [ngIf]="video.commentsEnabled === true">
8 *ngIf="isUserLoggedIn()"
11 (commentCreated)="onCommentThreadCreated($event)"
12 ></my-video-comment-add>
14 <div *ngIf="componentPagination.totalItems === 0 && comments.length === 0">No comments.</div>
17 class="comment-threads"
19 [infiniteScrollUpDistance]="1.5"
20 [infiniteScrollDistance]="0.5"
21 (scrolled)="onNearOfBottom()"
23 <div *ngFor="let comment of comments">
27 [inReplyToCommentId]="inReplyToCommentId"
28 [commentTree]="threadComments[comment.id]"
29 (wantedToReply)="onWantedToReply($event)"
30 (resetReply)="onResetReply()"
33 <div *ngIf="comment.totalReplies !== 0 && !threadComments[comment.id]" (click)="viewReplies(comment)" class="view-replies">
34 View all {{ comment.totalReplies }} replies
36 <span *ngIf="!threadLoading[comment.id]" class="glyphicon glyphicon-menu-down"></span>
37 <my-loader class="comment-thread-loading" [loading]="threadLoading[comment.id]"></my-loader>
43 <div *ngIf="video.commentsEnabled === false">
44 Comments are disabled.