Fixes bug on New Dataset, on tab Description

This commit is contained in:
apapachristou 2019-06-21 16:48:22 +03:00
parent d7a9815196
commit 9de8e7d723
1 changed files with 13 additions and 2 deletions

View File

@ -170,6 +170,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
});
});
} else if (dmpId != null) {
console.log("inhere");
this.isNew = true;
this.dmpService.getSingle(dmpId).map(data => data as DmpModel)
.pipe(takeUntil(this._destroyed))
@ -184,6 +185,16 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
this.viewOnly = true;
}
this.loadDatasetProfiles();
this.formGroup.get('dmp').valueChanges
.pipe(takeUntil(this._destroyed))
.subscribe(() => {
this.dmpValueChanged(this.formGroup.get('dmp').value);
});
this.formGroup.get('profile').valueChanges
.pipe(takeUntil(this._destroyed))
.subscribe(x => {
this.datasetProfileValueChanged(x);
});
this.breadCrumbs = Observable.of([
{
parentComponentName: null,