show available profiles of dataset in edit page

This commit is contained in:
Bernaldo Mihasi 2023-09-13 16:04:44 +03:00
parent ec952820b1
commit bfa310a074
1 changed files with 4 additions and 0 deletions

View File

@ -214,6 +214,10 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme
]
}]);
this.formGroup = this.datasetWizardModel.buildForm();
let profiles = this.datasetWizardModel.dmp.profiles.filter(profile => profile.data.dmpSectionIndex.includes(this.datasetWizardModel.dmpSectionIndex));
for(var profile of profiles){
this.availableDescriptionTemplates.push({id: profile.descriptionTemplateId, label: profile.label, description: ""})
}
this.formGroupRawValue = JSON.parse(JSON.stringify(this.formGroup.getRawValue()));
this.editMode = this.datasetWizardModel.status === DatasetStatus.Draft;
if (this.datasetWizardModel.status === DatasetStatus.Finalized || lockStatus) {