show available profiles of dataset in edit page
This commit is contained in:
parent
ec952820b1
commit
bfa310a074
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue