Fixes merge on load Datase tProfiles
This commit is contained in:
parent
c7b60cc6e3
commit
3c3f209176
|
@ -129,9 +129,9 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
||||||
this.viewOnly = true;
|
this.viewOnly = true;
|
||||||
}
|
}
|
||||||
// if (this.viewOnly) { this.formGroup.disable(); } // For future use, to make Dataset edit like DMP.
|
// if (this.viewOnly) { this.formGroup.disable(); } // For future use, to make Dataset edit like DMP.
|
||||||
//this.loadDatasetProfiles();
|
this.loadDatasetProfiles();
|
||||||
//this.registerFormListeners();
|
this.registerFormListeners();
|
||||||
this.availableProfiles = this.datasetWizardModel.dmp.profiles;
|
// this.availableProfiles = this.datasetWizardModel.dmp.profiles;
|
||||||
|
|
||||||
if (this.formGroup.get('dmp').value.status == DmpStatus.Draft && this.formGroup.get('status').value == DatasetStatus.Finalized) {
|
if (this.formGroup.get('dmp').value.status == DmpStatus.Draft && this.formGroup.get('status').value == DatasetStatus.Finalized) {
|
||||||
this.hasReversableStatus = true;
|
this.hasReversableStatus = true;
|
||||||
|
@ -156,7 +156,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
||||||
|
|
||||||
this.loadDatasetProfiles();
|
this.loadDatasetProfiles();
|
||||||
this.registerFormListeners();
|
this.registerFormListeners();
|
||||||
this.availableProfiles = data.profiles;
|
// this.availableProfiles = data.profiles;
|
||||||
|
|
||||||
this.breadCrumbs = Observable.of([
|
this.breadCrumbs = Observable.of([
|
||||||
{
|
{
|
||||||
|
@ -221,7 +221,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
||||||
}
|
}
|
||||||
// if (this.viewOnly) { this.formGroup.disable(); } // For future use, to make Dataset edit like DMP.
|
// if (this.viewOnly) { this.formGroup.disable(); } // For future use, to make Dataset edit like DMP.
|
||||||
this.loadDatasetProfiles();
|
this.loadDatasetProfiles();
|
||||||
this.availableProfiles = data.dmp.profiles;
|
// this.availableProfiles = data.dmp.profiles;
|
||||||
});
|
});
|
||||||
} else if (this.publicId != null) { // For Finalized -> Public Datasets
|
} else if (this.publicId != null) { // For Finalized -> Public Datasets
|
||||||
this.isNew = false;
|
this.isNew = false;
|
||||||
|
|
Loading…
Reference in New Issue