From 4c0a09c707d822757a6712223121a4537808b2bc Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Wed, 8 May 2024 17:25:54 +0300 Subject: [PATCH] changed save functionality on dmp-editor --- .../dmp/dmp-editor-blueprint/dmp-editor.component.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts index 18de61f5c..6a46a162d 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.ts @@ -304,11 +304,12 @@ export class DmpEditorComponent extends BaseEditor 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() {