Skip to content

Commit

Permalink
Merge pull request #339 from jeznorth/PRC-1025
Browse files Browse the repository at this point in the history
[PRC-1025] Show Anonymous When No Author Name Entered
  • Loading branch information
severinbeauvais authored Jan 24, 2019
2 parents c85e1fb + e23ee1a commit a2756cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<div class="comment-detail-container" *ngIf="comment">
<div class="title-container__title">
<h2>{{comment.commentAuthor.contactName}} <span *ngIf="comment.commentAuthor.orgName">({{comment.commentAuthor.orgName}})</span></h2>
<h2>{{comment.commentAuthor.contactName || 'Anonymous'}} <span *ngIf="comment.commentAuthor.orgName">({{comment.commentAuthor.orgName}})</span></h2>
<div class="comment-detail__date">
{{comment.dateAdded | date:'medium'}}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h2>Comments ({{comments.length}})</h2>
<div class="comment-item" [class.active]="isCurrentComment(item)" (click)="setCurrentComment(item)" tabindex="0">
<div class="comment-item-header">
<div class="comment-author">
{{item.commentAuthor?.contactName || '-'}}
{{item.commentAuthor?.contactName || 'Anonymous'}}
</div>
<div class="comment-date">
{{(item.dateAdded | date) || '-'}}
Expand Down

0 comments on commit a2756cc

Please sign in to comment.