diff --git a/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html b/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html index e8ca1646149c1cf8ce9bb8ccef96216d19e7cbea..56e05921501e74588b25c0393bbf1e313595d202 100644 --- a/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html +++ b/src/app/components/moderator/moderator-comment-list/moderator-comment-list.component.html @@ -1,4 +1,5 @@ <div fxLayout="row" + *ngIf="comments.length > 0" [ngClass]="{'search-container' : !scroll, 'search-container-fixed' : scroll}" (window:scroll)="checkScroll()" fxLayoutAlign="center"> @@ -126,7 +127,7 @@ </app-comment> </div> -<div *ngIf="comments && commentsFilteredByTime.length < 1 && period === 'time-all' && !isLoading" +<div *ngIf="comments && (commentsFilteredByTime.length < 1 && period === 'time-all' || comments.length === 0) && !isLoading" fxLayout="row" fxLayoutAlign="center center" class="no-comments"> @@ -135,7 +136,7 @@ </div> <div *ngIf="(filteredComments && filteredComments.length === 0 && hideCommentsList) - || (comments && commentsFilteredByTime.length === 0 && period !== 'time-all') && !isLoading" + || (comments && commentsFilteredByTime.length === 0 && period !== 'time-all') && !isLoading && comments.length > 0" fxLayout="row" fxLayoutAlign="center center" class="no-comments"> diff --git a/src/app/components/shared/comment-list/comment-list.component.html b/src/app/components/shared/comment-list/comment-list.component.html index 636f2c409cdb5eae4e8d58206f2e7291490449a0..82234ec8d5dab8d0d09fb0c69158d89d91718147 100644 --- a/src/app/components/shared/comment-list/comment-list.component.html +++ b/src/app/components/shared/comment-list/comment-list.component.html @@ -1,4 +1,5 @@ <div fxLayout="row" + *ngIf="comments.length > 0" [ngClass]="{'search-container' : !scroll, 'search-container-fixed' : scroll}" (window:scroll)="checkScroll()" fxLayoutAlign="center"> @@ -226,7 +227,7 @@ </div> <!-- No Questions Present --> -<div *ngIf="comments && commentsFilteredByTime.length < 1 && period === 'time-all' && !isLoading" +<div *ngIf="comments && (commentsFilteredByTime.length < 1 && period === 'time-all' || comments.length === 0) && !isLoading" fxLayout="row" fxLayoutAlign="center center" class="no-comments"> @@ -234,7 +235,7 @@ </div> <div *ngIf="(filteredComments && filteredComments.length === 0 && hideCommentsList) - || (comments && commentsFilteredByTime.length === 0 && period !== 'time-all') && !isLoading" + || (comments && commentsFilteredByTime.length === 0 && period !== 'time-all') && !isLoading && comments.length > 0" fxLayout="row" fxLayoutAlign="center center" class="no-comments">