Fixes merge on load Datase tProfiles

This commit is contained in:
apapachristou 2019-09-13 13:58:36 +03:00
parent c7b60cc6e3
commit 3c3f209176
1 changed files with 5 additions and 5 deletions

View File

@ -129,9 +129,9 @@ 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.registerFormListeners();
this.availableProfiles = this.datasetWizardModel.dmp.profiles;
this.loadDatasetProfiles();
this.registerFormListeners();
// this.availableProfiles = this.datasetWizardModel.dmp.profiles;
if (this.formGroup.get('dmp').value.status == DmpStatus.Draft && this.formGroup.get('status').value == DatasetStatus.Finalized) {
this.hasReversableStatus = true;
@ -156,7 +156,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
this.loadDatasetProfiles();
this.registerFormListeners();
this.availableProfiles = data.profiles;
// this.availableProfiles = data.profiles;
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.
this.loadDatasetProfiles();
this.availableProfiles = data.dmp.profiles;
// this.availableProfiles = data.dmp.profiles;
});
} else if (this.publicId != null) { // For Finalized -> Public Datasets
this.isNew = false;