aboutsummaryrefslogtreecommitdiff
path: root/src/app/components/post-page/post-page.component.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/components/post-page/post-page.component.html')
-rw-r--r--src/app/components/post-page/post-page.component.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/components/post-page/post-page.component.html b/src/app/components/post-page/post-page.component.html
index 9858c76..cf56611 100644
--- a/src/app/components/post-page/post-page.component.html
+++ b/src/app/components/post-page/post-page.component.html
@@ -12,6 +12,10 @@
</form>
<hr class="card-hr">
<section>
+ <div class="text-centered" *ngIf="post?.comments.length === 0">
+ Nobody has comented on this post yet!<br>
+ Try refreshing the page!
+ </div>
<div class="comment" *ngFor="let comm of post?.comments">
<app-comment [paramId]="comm.id.toString()"></app-comment>
</div>