bug fix on dmp-editor save
This commit is contained in:
parent
ecc728b24c
commit
f43073f8ef
|
@ -181,7 +181,7 @@ export class DmpEditorComponent extends BaseEditor<DmpEditorModel, Dmp> implemen
|
||||||
this.matomoService.trackPageView('DMP Editor');
|
this.matomoService.trackPageView('DMP Editor');
|
||||||
super.ngOnInit();
|
super.ngOnInit();
|
||||||
|
|
||||||
if (this.isNew === false) this.nextStep();
|
if (this.isNew === false && this.step === 0) this.nextStep();
|
||||||
}
|
}
|
||||||
|
|
||||||
getItem(itemId: Guid, successFunction: (item: Dmp) => void) {
|
getItem(itemId: Guid, successFunction: (item: Dmp) => void) {
|
||||||
|
@ -273,7 +273,7 @@ export class DmpEditorComponent extends BaseEditor<DmpEditorModel, Dmp> implemen
|
||||||
refreshData(): void {
|
refreshData(): void {
|
||||||
this.getItem(this.editorModel.id, (data: Dmp) => {
|
this.getItem(this.editorModel.id, (data: Dmp) => {
|
||||||
this.prepareForm(data)
|
this.prepareForm(data)
|
||||||
if (this.isNew === false) this.nextStep();
|
if (this.isNew === false && this.step===0) this.nextStep();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue