Fixes bug on add dataset on get dataset profile form
This commit is contained in:
parent
c9ca55fd76
commit
07e239be92
|
@ -154,8 +154,8 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
|||
this.editMode = this.datasetWizardModel.status === DatasetStatus.Draft;
|
||||
this.formGroup.get('dmp').disable();
|
||||
|
||||
//this.loadDatasetProfiles();
|
||||
//this.registerFormListeners();
|
||||
this.loadDatasetProfiles();
|
||||
this.registerFormListeners();
|
||||
this.availableProfiles = data.profiles;
|
||||
|
||||
this.breadCrumbs = Observable.of([
|
||||
|
@ -193,7 +193,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
|||
this.datasetWizardModel.dmp = data;
|
||||
this.formGroup.get('dmp').setValue(this.datasetWizardModel.dmp);
|
||||
|
||||
//this.loadDatasetProfiles();
|
||||
this.loadDatasetProfiles();
|
||||
this.breadCrumbs = Observable.of([
|
||||
{
|
||||
parentComponentName: null,
|
||||
|
@ -220,7 +220,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
|||
this.viewOnly = true;
|
||||
}
|
||||
// if (this.viewOnly) { this.formGroup.disable(); } // For future use, to make Dataset edit like DMP.
|
||||
//this.loadDatasetProfiles();
|
||||
this.loadDatasetProfiles();
|
||||
this.availableProfiles = data.dmp.profiles;
|
||||
});
|
||||
} else if (this.publicId != null) { // For Finalized -> Public Datasets
|
||||
|
|
Loading…
Reference in New Issue