no message
This commit is contained in:
parent
04dd1145b5
commit
64509cb2ee
|
@ -5,15 +5,9 @@
|
||||||
<mat-step [stepControl]="formGroup">
|
<mat-step [stepControl]="formGroup">
|
||||||
<form *ngIf="formGroup" [formGroup]="formGroup">
|
<form *ngIf="formGroup" [formGroup]="formGroup">
|
||||||
<ng-template matStepLabel>{{'DATASET-WIZARD.FIRST-STEP.TITLE' | translate}}</ng-template>
|
<ng-template matStepLabel>{{'DATASET-WIZARD.FIRST-STEP.TITLE' | translate}}</ng-template>
|
||||||
<!-- <auto-complete class="mat-form-field-full-width" placeholder="{{'DATASET-WIZARD.FIRST-STEP.DMP' | translate}}" [configuration]="dmpAutoCompleteConfiguration"
|
<mat-form-field formGroupName="profile">
|
||||||
titleKey="label" [control]="formGroup.get('dmp')" [required]="true">
|
<mat-select placeholder=" {{'DATASET-WIZARD.FIRST-STEP.PROFILE'| translate}}" formControlName="id">
|
||||||
</auto-complete> -->
|
<mat-option *ngFor="let profile of availableProfiles" [value]="profile.id">
|
||||||
<!-- <auto-complete class="mat-form-field-full-width" placeholder="{{'DATASET-WIZARD.FIRST-STEP.PROFILE' | translate}}" [configuration]="datasetProfileAutoCompleteConfiguration"
|
|
||||||
titleKey="label" [control]="formGroup.get('profile')" [required]="true" [disabled]="!formGroup.get('dmp').value">
|
|
||||||
</auto-complete> -->
|
|
||||||
<mat-form-field>
|
|
||||||
<mat-select placeholder=" {{'DATASET-WIZARD.FIRST-STEP.PROFILE'| translate}}" formControlName="profile">
|
|
||||||
<mat-option *ngFor="let profile of availableProfiles" [value]="profile">
|
|
||||||
{{profile.label}}
|
{{profile.label}}
|
||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
|
|
|
@ -107,7 +107,7 @@ export class DatasetWizardComponent implements AfterViewInit {
|
||||||
datasetProfileRequestItem.criteria = new DatasetProfileCriteria();
|
datasetProfileRequestItem.criteria = new DatasetProfileCriteria();
|
||||||
datasetProfileRequestItem.criteria.id = this.datasetWizardModel.dmp.id;
|
datasetProfileRequestItem.criteria.id = this.datasetWizardModel.dmp.id;
|
||||||
this.datasetWizardService.getAvailableProfiles(datasetProfileRequestItem).subscribe(items => {
|
this.datasetWizardService.getAvailableProfiles(datasetProfileRequestItem).subscribe(items => {
|
||||||
this.availableProfiles = items;
|
this.availableProfiles = JsonSerializer.fromJSONArray(items, DatasetProfileModel);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
|
|
|
@ -18,7 +18,7 @@ export class DatasetProfileModel implements Serializable<DatasetProfileModel> {
|
||||||
if (context == null) { context = this.createValidationContext(); }
|
if (context == null) { context = this.createValidationContext(); }
|
||||||
|
|
||||||
const formGroup = new FormBuilder().group({
|
const formGroup = new FormBuilder().group({
|
||||||
id: [{ value: this.id, disabled: disabled }]
|
id: [{ value: this.id, disabled: disabled }],
|
||||||
});
|
});
|
||||||
|
|
||||||
return formGroup;
|
return formGroup;
|
||||||
|
|
|
@ -57,9 +57,9 @@ export class DatasetWizardModel implements Serializable<DatasetWizardModel> {
|
||||||
dataRepositories: [{ value: this.dataRepositories, disabled: disabled }, context.getValidation('dataRepositories').validators],
|
dataRepositories: [{ value: this.dataRepositories, disabled: disabled }, context.getValidation('dataRepositories').validators],
|
||||||
externalDatasets: [{ value: this.externalDatasets, disabled: disabled }, context.getValidation('externalDatasets').validators],
|
externalDatasets: [{ value: this.externalDatasets, disabled: disabled }, context.getValidation('externalDatasets').validators],
|
||||||
dmp: [{ value: this.dmp, disabled: disabled }, context.getValidation('dmp').validators],
|
dmp: [{ value: this.dmp, disabled: disabled }, context.getValidation('dmp').validators],
|
||||||
profile: [{ value: this.profile, disabled: disabled }, context.getValidation('profile').validators],
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
formGroup.addControl("profile",this.profile.buildForm())
|
||||||
return formGroup;
|
return formGroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue