Fix issue with RDA Common Standards

This commit is contained in:
George Kalampokis 2021-10-12 18:05:38 +03:00
parent 29919f981a
commit 6de12fd0e8
2 changed files with 82 additions and 83 deletions

View File

@ -187,7 +187,7 @@
<mat-label>{{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.RDA-COMMON-STANDARDS' | translate}}</mat-label> <mat-label>{{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.RDA-COMMON-STANDARDS' | translate}}</mat-label>
<mat-select [formControl]="this.form.get('rdaCommonStandard')"> <mat-select [formControl]="this.form.get('rdaCommonStandard')">
<mat-option>--</mat-option> <mat-option>--</mat-option>
<mat-option *ngFor="let property of rdaCommonStandards" [value]="property"> <mat-option *ngFor="let property of datasetProfileService.getRDACommonStandards()" [value]="property">
{{property}} {{property}}
</mat-option> </mat-option>
</mat-select> </mat-select>

View File

@ -44,7 +44,7 @@ export class DatasetProfileEditorFieldComponent extends BaseComponent implements
@Output() delete = new EventEmitter<void>(); @Output() delete = new EventEmitter<void>();
rdaCommonStandards = this.datasetProfileService.getRDACommonStandards(); //rdaCommonStandards = this.datasetProfileService.getRDACommonStandards(); //GK: Don't do that again. The service has a weird async behaviour.
constructor( constructor(
public enumUtils: EnumUtils, public enumUtils: EnumUtils,
@ -70,7 +70,6 @@ export class DatasetProfileEditorFieldComponent extends BaseComponent implements
// if (this.form.get('multiplicity')) { // if (this.form.get('multiplicity')) {
// if (this.form.get('multiplicity').value.min > 1 && this.form.get('multiplicity').value.max > 1) { // if (this.form.get('multiplicity').value.min > 1 && this.form.get('multiplicity').value.max > 1) {
// this.isFieldMultiplicityEnabled = true; // this.isFieldMultiplicityEnabled = true;