Merge branch 'dmp-refactoring' of https://code-repo.d4science.org/MaDgiK-CITE/argos into dmp-refactoring

This commit is contained in:
Sofia Papacharalampous 2024-05-10 12:46:17 +03:00
commit 07ef69ac2d
1 changed files with 6 additions and 2 deletions

View File

@ -150,7 +150,11 @@ export class DescriptionTemplateTypeEditorComponent extends BaseEditor<Descripti
this.descriptionTemplateTypeService.persist(formData) this.descriptionTemplateTypeService.persist(formData)
.pipe(takeUntil(this._destroyed)).subscribe( .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) error => this.onCallbackError(error)
); );
} }
@ -218,7 +222,7 @@ export class DescriptionTemplateTypeEditorComponent extends BaseEditor<Descripti
dialogRef.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => { dialogRef.afterClosed().pipe(takeUntil(this._destroyed)).subscribe(result => {
if (result) { if (result) {
this.formGroup.get('status').setValue(DescriptionTemplateTypeStatus.Finalized); this.formGroup.get('status').setValue(DescriptionTemplateTypeStatus.Finalized);
this.persistEntity(); this.formSubmit();
}}); }});
} }
} }