diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-03-21 18:29:17 +0200 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-03-21 18:29:17 +0200 |
| commit | 57e6249898e10873e07498e7508192ba07dd50ef (patch) | |
| tree | b8184233dba5c35e3e41720123a7975381f9624c | |
| parent | 276b47c8823fd9332948435566a8a5349c898f8e (diff) | |
| download | DevHive-Angular-57e6249898e10873e07498e7508192ba07dd50ef.tar DevHive-Angular-57e6249898e10873e07498e7508192ba07dd50ef.tar.gz DevHive-Angular-57e6249898e10873e07498e7508192ba07dd50ef.zip | |
Added a message to post page when there are no comments
| -rw-r--r-- | src/app/components/post-page/post-page.component.html | 4 |
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> |
