From bc9691fa5dd895d179471d91e3ff5b1201112c8c Mon Sep 17 00:00:00 2001 From: amentis Date: Wed, 7 Feb 2024 10:15:06 +0200 Subject: [PATCH] description templates validation small changes --- .../description-template-editor-field.component.html | 5 +++-- .../editor/description-template-editor.component.ts | 8 ++++---- .../editor/description-template-editor.model.ts | 4 ++++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html index b90307448..e8aaad790 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/components/field/description-template-editor-field.component.html @@ -166,8 +166,9 @@ - - {{'GENERAL.VALIDATION.REQUIRED' | translate}} + {{'GENERAL.VALIDATION.REQUIRED' | translate}} + {{form.get('data').get('fieldType').getError('backendError').message}} + diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts index 104b426a1..027bc2fd4 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.ts @@ -172,10 +172,10 @@ export class DescriptionTemplateEditorComponent extends BaseEditor