[develop | DONE | FIXED]: result-preview.component.html: Added check, not to show acronym & title when they are the same.

This commit is contained in:
Konstantina Galouni 2024-06-04 11:48:54 +03:00
parent d0a6af2745
commit ca6f1fd751
1 changed files with 5 additions and 3 deletions

View File

@ -3,9 +3,11 @@
<span *ngIf="result.acronym">
{{result.acronym}}
</span>
<span *ngIf="result.acronym && (result.title)"> (</span>
<span *ngIf="result.title" [innerHTML]="result.title"></span>
<span *ngIf="result.acronym && result.title">)</span>
<ng-container *ngIf="result.acronym != result.title">
<span *ngIf="result.acronym && (result.title)"> (</span>
<span *ngIf="result.title" [innerHTML]="result.title"></span>
<span *ngIf="result.acronym && result.title">)</span>
</ng-container>
</div>
<div *ngIf="!result.title && !result.acronym">
[no title available]