form-composite-title.component.html: [Bug fix] Show "view more/less" functionality only if there is extendedDescription.

This commit is contained in:
Konstantina Galouni 2021-10-15 13:56:45 +03:00
parent c3f28936af
commit eeb5479a98
1 changed files with 2 additions and 3 deletions

View File

@ -14,13 +14,12 @@
<h6 *ngIf="form.get('description').value && !isChild" class="col-12" [innerHTML]="form.get('description').value"></h6>
<div class="col-12 mt-3 mb-3">
<div *ngIf="form.get('extendedDescription').value && !isChild" class="col-12 mt-3 mb-3">
<div *ngIf="!showExtendedDescription" (click)="showExtendedDescription = !showExtendedDescription">
<span class="more d-flex justify-content-center">{{'DATASET-EDITOR.QUESTION.EXTENDED-DESCRIPTION.VIEW-MORE' | translate}}</span>
</div>
<div *ngIf="showExtendedDescription">
<h6 *ngIf="form.get('extendedDescription').value && !isChild" [innerHTML]="form.get('extendedDescription').value">
</h6>
<h6 [innerHTML]="form.get('extendedDescription').value"></h6>
<span class="more d-flex justify-content-center" (click)="showExtendedDescription = !showExtendedDescription">
{{'DATASET-EDITOR.QUESTION.EXTENDED-DESCRIPTION.VIEW-LESS' | translate}}
</span>