Dataset profile editor. Minor Fix not building issue.
This commit is contained in:
parent
d667d574af
commit
67223bc2f0
|
@ -188,13 +188,13 @@
|
|||
<span style="font-weight: bold;">{{'DATASET-PROFILE-EDITOR.ACTIONS.FIELD.PREVIEW' | translate}}</span>
|
||||
</div>
|
||||
|
||||
<div style="margin-right: -15px; margin-left: -15px;" *ngIf="previewForm && form?.get('fields').controls[0].get('viewStyle')?.value.renderStyle">
|
||||
<div style="margin-right: -15px; margin-left: -15px;" *ngIf="previewForm && firstField?.get('viewStyle').get('renderStyle').value">
|
||||
<app-form-section-inner [form]="previewForm">
|
||||
|
||||
</app-form-section-inner>
|
||||
</div>
|
||||
|
||||
<div class="w-100" *ngIf="!form?.get('fields').controls[0].get('viewStyle')?.value.renderStyle">
|
||||
<div class="w-100" *ngIf="!firstField?.get('viewStyle').get('renderStyle').value">
|
||||
<em>
|
||||
{{'DATASET-PROFILE-EDITOR.ACTIONS.FIELD.NOT-INITIALIZED' | translate}}
|
||||
</em>
|
||||
|
|
|
@ -84,6 +84,14 @@ export class DatasetProfileEditorCompositeFieldComponent implements OnInit, OnCh
|
|||
// this.showAdditionalInfo = !!this.form.get('additionalInformation').value;
|
||||
}
|
||||
|
||||
get firstField(){
|
||||
try{
|
||||
return (this.form.get('fields') as FormArray).at(0);
|
||||
}catch{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
get isMultiplicityEnabled(){
|
||||
if(!this.form.get('multiplicity')){
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue