From 3e02a39c5224c3de10a95ef49129e2d702099470 Mon Sep 17 00:00:00 2001 From: apapachristou Date: Wed, 16 Oct 2019 15:40:04 +0300 Subject: [PATCH] Adds auto-generated value on "Section Unique Identifier" field. (Issue #191) --- .../field/dataset-profile-editor-field.component.html | 5 +++++ .../section/dataset-profile-editor-section.component.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.html b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.html index fa4f0968c..29d6babe0 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.html +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/field/dataset-profile-editor-field.component.html @@ -20,9 +20,12 @@ {{'GENERAL.VALIDATION.REQUIRED' | translate}} + + + + {{enumUtils.toDatasetProfileFieldValidationTypeString(validationTypeEnum.Required)}} + {{'DATASET-PROFILE-EDITOR.STEPS.FORM.COMPOSITE-FIELD.FIELDS.RDA-COMMON-STANDARDS' | translate}} diff --git a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.ts b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.ts index 98b885051..92a3dc424 100644 --- a/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.ts +++ b/dmp-frontend/src/app/ui/admin/dataset-profile/editor/components/section/dataset-profile-editor-section.component.ts @@ -32,6 +32,7 @@ export class DatasetProfileEditorSectionComponent extends BaseComponent implemen addField() { const fieldSet: FieldSetEditorModel = new FieldSetEditorModel(); const field: FieldEditorModel = new FieldEditorModel(); + field.id=Guid.create().toString(); fieldSet.fields.push(field); if (this.dataModel.fieldSets) { fieldSet.id=Guid.create().toString();