All files / app/page/ref/comments comments.component.html

25% Statements 5/20
16.66% Branches 1/6
0% Functions 0/2
36.36% Lines 4/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 241x 3x                     1x               1x      
<ng-container *mobxAutorun>
  @if (store.view.ref) {
    <app-comment-reply #reply [to]="store.view.ref"
                       quote=""
                       [tags]="replyTags"
                       (save)="newComments$.next($event)"></app-comment-reply>
    @if (thread.latest.length) {
      <app-comment-thread [source]="store.view.url"
                          [newComments$]="newComments$"
                          [scrollToLatest]="true"
                          [depth]="depth"></app-comment-thread>
      @if (thread.hasMore) {
        <span class="fake-link load-more" (click)="thread.loadMore()" i18n>
        load more comments
      </span>
      }
    } @else {
      <app-loading></app-loading>
    }
  } @else {
    <app-loading></app-loading>
  }
</ng-container>