Fixes the routing on Dataset edit's save button.
This commit is contained in:
parent
c78e24782f
commit
f98cfc2969
|
@ -279,7 +279,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
||||||
this.publicMode = true;
|
this.publicMode = true;
|
||||||
} else if (this.profileUpdateId != null) {
|
} else if (this.profileUpdateId != null) {
|
||||||
this.datasetWizardService.updateDatasetProfile(this.profileUpdateId)
|
this.datasetWizardService.updateDatasetProfile(this.profileUpdateId)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(data => {
|
.subscribe(data => {
|
||||||
this.datasetWizardModel = new DatasetWizardEditorModel().fromModel(data);
|
this.datasetWizardModel = new DatasetWizardEditorModel().fromModel(data);
|
||||||
this.needsUpdate();
|
this.needsUpdate();
|
||||||
|
@ -407,7 +407,7 @@ export class DatasetWizardComponent extends BaseComponent implements OnInit, IBr
|
||||||
this.datasetWizardService.createDataset(this.formGroup.value)
|
this.datasetWizardService.createDataset(this.formGroup.value)
|
||||||
.pipe(takeUntil(this._destroyed))
|
.pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(data => {
|
.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 } });
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue