form-composite-title.component.html: [Bug fix] Show "view more/less" functionality only if there is extendedDescription.
This commit is contained in:
parent
c3f28936af
commit
eeb5479a98
|
@ -14,13 +14,12 @@
|
||||||
|
|
||||||
<h6 *ngIf="form.get('description').value && !isChild" class="col-12" [innerHTML]="form.get('description').value"></h6>
|
<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">
|
<div *ngIf="!showExtendedDescription" (click)="showExtendedDescription = !showExtendedDescription">
|
||||||
<span class="more d-flex justify-content-center">{{'DATASET-EDITOR.QUESTION.EXTENDED-DESCRIPTION.VIEW-MORE' | translate}}</span>
|
<span class="more d-flex justify-content-center">{{'DATASET-EDITOR.QUESTION.EXTENDED-DESCRIPTION.VIEW-MORE' | translate}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="showExtendedDescription">
|
<div *ngIf="showExtendedDescription">
|
||||||
<h6 *ngIf="form.get('extendedDescription').value && !isChild" [innerHTML]="form.get('extendedDescription').value">
|
<h6 [innerHTML]="form.get('extendedDescription').value"></h6>
|
||||||
</h6>
|
|
||||||
<span class="more d-flex justify-content-center" (click)="showExtendedDescription = !showExtendedDescription">
|
<span class="more d-flex justify-content-center" (click)="showExtendedDescription = !showExtendedDescription">
|
||||||
{{'DATASET-EDITOR.QUESTION.EXTENDED-DESCRIPTION.VIEW-LESS' | translate}}
|
{{'DATASET-EDITOR.QUESTION.EXTENDED-DESCRIPTION.VIEW-LESS' | translate}}
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Reference in New Issue