added annotation mentions.2

This commit is contained in:
Sofia Papacharalampous 2024-07-15 15:43:05 +03:00
parent 1038a14a8b
commit 287c016c89
1 changed files with 4 additions and 1 deletions

View File

@ -137,7 +137,10 @@
</div>
<div class="row mt-3 pt-1 pb-1">
<div class="col-12 annotation-full-text" [innerHtml]="parsePayload(annotation.payload)"></div>
<ng-container *ngFor="let annotationItem of annotation.payload">
<div *ngIf="!annotationItem.isMention; else subthreadMention">{{annotationItem.payload}}&nbsp;</div>
<ng-template #subthreadMention><div><span class="highlight-user-mention">{{annotationItem.payload}}</span>&nbsp;</div></ng-template>
</ng-container>
</div>
</div>
</div>