From 2c98acb1857cb85c9a9b70942c9c61f4734d9700 Mon Sep 17 00:00:00 2001 From: Sofia Papacharalampous Date: Thu, 25 Apr 2024 12:02:13 +0300 Subject: [PATCH] show generic backend error status 400 on save of dmp-description --- .../ui/description/editor/description-editor.component.ts | 1 + dmp-frontend/src/common/base/base-editor.ts | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts index e19f8740e..06b69d15c 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts +++ b/dmp-frontend/src/app/ui/description/editor/description-editor.component.ts @@ -667,6 +667,7 @@ export class DescriptionEditorComponent extends BaseEditor void): void { this.formService.removeAllBackEndErrors(this.formGroup); this.formService.touchAllFormFields(this.formGroup); + this.tocValidationService.validateForm(); if (this.formGroup.get('label').valid && this.formGroup.get('dmpId').valid && this.formGroup.get('dmpDescriptionTemplateId').valid && this.formGroup.get('descriptionTemplateId').valid && this.formGroup.get('status').valid) { this.persistEntity(onSuccess); diff --git a/dmp-frontend/src/common/base/base-editor.ts b/dmp-frontend/src/common/base/base-editor.ts index 54f7c672a..c66599d13 100644 --- a/dmp-frontend/src/common/base/base-editor.ts +++ b/dmp-frontend/src/common/base/base-editor.ts @@ -135,12 +135,15 @@ export abstract class BaseEditor