Merge branch 'dmp-refactoring' of https://code-repo.d4science.org/MaDgiK-CITE/argos into dmp-refactoring
This commit is contained in:
commit
07ef69ac2d
|
@ -150,7 +150,11 @@ export class DescriptionTemplateTypeEditorComponent extends BaseEditor<Descripti
|
|||
|
||||
this.descriptionTemplateTypeService.persist(formData)
|
||||
.pipe(takeUntil(this._destroyed)).subscribe(
|
||||
complete => onSuccess ? onSuccess(complete) : this.onCallbackSuccess(complete),
|
||||
// for each state navigate to listing page
|
||||
complete => {
|
||||
this.formGroup = null;
|
||||
this.router.navigate(['description-template-type'])
|
||||
},
|
||||
error => this.onCallbackError(error)
|
||||
);
|
||||
}
|
||||
|
@ -218,7 +222,7 @@ export class DescriptionTemplateTypeEditorComponent extends BaseEditor<Descripti
|
|||
dialogRef.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => {
|
||||
if (result) {
|
||||
this.formGroup.get('status').setValue(DescriptionTemplateTypeStatus.Finalized);
|
||||
this.persistEntity();
|
||||
this.formSubmit();
|
||||
}});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue