changed save functionality on dmp-editor

This commit is contained in:
Sofia Papacharalampous 2024-05-08 17:25:54 +03:00
parent ca4efbeb49
commit 4c0a09c707
1 changed files with 6 additions and 5 deletions

View File

@ -304,11 +304,12 @@ export class DmpEditorComponent extends BaseEditor<DmpEditorModel, Dmp> implemen
formSubmit(): void {
this.formService.removeAllBackEndErrors(this.formGroup);
this.formService.touchAllFormFields(this.formGroup);
if (this.formGroup.get('label').valid && this.formGroup.get('blueprint').valid && this.formGroup.get('status').valid
&& this.formGroup.get('descriptionTemplates').valid) {
this.persistEntity();
}
// this.formService.touchAllFormFields(this.formGroup);
// if (this.formGroup.get('label').valid && this.formGroup.get('blueprint').valid && this.formGroup.get('status').valid
// && this.formGroup.get('descriptionTemplates').valid) {
// this.persistEntity();
// }
this.persistEntity();
}
discardChanges() {