Fixes the routing on Dataset edit's save button.

This commit is contained in:
gkolokythas 2019-04-25 18:20:16 +03:00
parent c78e24782f
commit f98cfc2969
1 changed files with 2 additions and 2 deletions

View File

@ -279,7 +279,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
this.publicMode = true;
} else if (this.profileUpdateId != null) {
this.datasetWizardService.updateDatasetProfile(this.profileUpdateId)
.pipe(takeUntil(this._destroyed))
.pipe(takeUntil(this._destroyed))
.subscribe(data => {
this.datasetWizardModel = new DatasetWizardEditorModel().fromModel(data);
this.needsUpdate();
@ -407,7 +407,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
this.datasetWizardService.createDataset(this.formGroup.value)
.pipe(takeUntil(this._destroyed))
.subscribe(data => {
this.router.navigateByUrl('/datasets/dmp/' + this.formGroup.get('dmp').value.id);
this.router.navigate(['datasets'], { queryParams: { dmpId: this.formGroup.get('dmp').value.id } });
});
}