From bfa310a0745e6eab7206f241d976dc2612bbe493 Mon Sep 17 00:00:00 2001 From: Aldo Mihasi Date: Wed, 13 Sep 2023 16:04:44 +0300 Subject: [PATCH] show available profiles of dataset in edit page --- .../app/ui/dataset/dataset-wizard/dataset-wizard.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts index 6a49febbb..496754b05 100644 --- a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts +++ b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts @@ -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) {