Hide deleted comment message when no replies
This commit is contained in:
parent
2c92b0634f
commit
09f8f73fbc
|
@ -1,4 +1,4 @@
|
||||||
<div class="root-comment">
|
<div *ngIf="!comment.isDeleted || comment.isDeleted && comment.totalReplies !== 0" class="root-comment">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<a *ngIf="!comment.isDeleted" [href]="comment.account.url" target="_blank" rel="noopener noreferrer">
|
<a *ngIf="!comment.isDeleted" [href]="comment.account.url" target="_blank" rel="noopener noreferrer">
|
||||||
<img
|
<img
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
class="comment-date">{{ comment.createdAt | myFromNow }}</a>
|
class="comment-date">{{ comment.createdAt | myFromNow }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div *ngIf="comment.isDeleted" class="comment-html comment-html-deleted">
|
<div class="comment-html comment-html-deleted">
|
||||||
<i i18n>This comment has been deleted</i>
|
<i i18n>This comment has been deleted</i>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
Loading…
Reference in New Issue