diff --git a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.html b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.html index 8e18c5be0..4a0cf0eb8 100644 --- a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.html +++ b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.html @@ -55,7 +55,7 @@ - + {{profile.label}} 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 1501bdb55..066a9e76d 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 @@ -163,6 +163,11 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr .subscribe( () => { this.dmpValueChanged(this.formGroup.get('dmp').value); }); + this.formGroup.get('profile').valueChanges + .pipe(takeUntil(this._destroyed)) + .subscribe(x => { + this.datasetProfileValueChanged(x); + }); }); } else if (dmpId != null) { this.isNew = true; @@ -364,14 +369,6 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr } } - selctionChanged() { - this.formGroup.get('profile').valueChanges - .pipe(takeUntil(this._destroyed)) - .subscribe(x => { - this.datasetProfileValueChanged(x); - }); - } - searchDmp(query: string): Observable { const fields: Array = new Array(); fields.push('asc');