-
{{'DESCRIPTION-EDITOR.TOC.MAIN-INFO' | translate}} (2)
+
0}">{{'DESCRIPTION-EDITOR.TOC.MAIN-INFO' | translate}} ({{ countErrorsOfBaseInfoPage }})
{{'DESCRIPTION-EDITOR.TOC.MAIN-INFO' | translate}} (done)
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 2183a398c..72922f4b5 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
@@ -47,6 +47,7 @@ import { DmpBlueprintDefinitionSection } from '@app/core/model/dmp-blueprint/dmp
import { DescriptionTemplate, DescriptionTemplateField, DescriptionTemplateFieldSet, DescriptionTemplatePage, DescriptionTemplateSection } from '@app/core/model/description-template/description-template';
import { DmpDescriptionTemplate } from '@app/core/model/dmp/dmp';
import { FileTransformerEntityType } from '@app/core/common/enum/file-transformer-entity-type';
+import { nameof } from 'ts-simple-nameof';
@Component({
selector: 'app-description-editor-component',
@@ -822,6 +823,19 @@ export class DescriptionEditorComponent extends BaseEditor
(x => x.label), nameof(x => x.descriptionTemplateId)];
+ baseInfoControlNames.forEach((name: string) => {
+ if (!this.formGroup.get(name)?.valid) errorsCount += 1;
+ });
+
+ return errorsCount;
+ }
+
getEntryVisibleFieldSets(entry: ToCEntry): ToCEntry[] {
let fieldSets = [];
if (entry.type === ToCEntryType.FieldSet && !this.table0fContents.internalTable.hiddenEntries.find(hiddenEntry => hiddenEntry === entry.id.toString())) {
@@ -911,6 +925,9 @@ export class DescriptionEditorComponent extends BaseEditor