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>
|
<span style="font-weight: bold;">{{'DATASET-PROFILE-EDITOR.ACTIONS.FIELD.PREVIEW' | translate}}</span>
|
||||||
</div>
|
</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 [form]="previewForm">
|
||||||
|
|
||||||
</app-form-section-inner>
|
</app-form-section-inner>
|
||||||
</div>
|
</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>
|
<em>
|
||||||
{{'DATASET-PROFILE-EDITOR.ACTIONS.FIELD.NOT-INITIALIZED' | translate}}
|
{{'DATASET-PROFILE-EDITOR.ACTIONS.FIELD.NOT-INITIALIZED' | translate}}
|
||||||
</em>
|
</em>
|
||||||
|
|
|
@ -84,6 +84,14 @@ export class DatasetProfileEditorCompositeFieldComponent implements OnInit, OnCh
|
||||||
// this.showAdditionalInfo = !!this.form.get('additionalInformation').value;
|
// this.showAdditionalInfo = !!this.form.get('additionalInformation').value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get firstField(){
|
||||||
|
try{
|
||||||
|
return (this.form.get('fields') as FormArray).at(0);
|
||||||
|
}catch{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get isMultiplicityEnabled(){
|
get isMultiplicityEnabled(){
|
||||||
if(!this.form.get('multiplicity')){
|
if(!this.form.get('multiplicity')){
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue