diff --git a/dmp-frontend/src/app/ui/description/editor/description-editor.component.html b/dmp-frontend/src/app/ui/description/editor/description-editor.component.html index 6aa96e43a..a072f3dbd 100644 --- a/dmp-frontend/src/app/ui/description/editor/description-editor.component.html +++ b/dmp-frontend/src/app/ui/description/editor/description-editor.component.html @@ -157,9 +157,9 @@ -
+
- +
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 5940693ab..4fc6c4da9 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 @@ -242,7 +242,7 @@ export class DescriptionEditorComponent extends BaseEditor -
+
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 3b7d318ed..ef2ce7650 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 @@ -68,6 +68,7 @@ export class DmpEditorComponent extends BaseEditor implemen isNew = true; isDeleted = false; isFinalized = false; + viewOnly = false; item: Dmp; selectedBlueprint: DmpBlueprint; step: number = 0; @@ -260,7 +261,11 @@ export class DmpEditorComponent extends BaseEditor implemen this.sectionToFieldsMap = this.prepareErrorIndication(); if (this.editorModel.status == DmpStatus.Finalized || this.isDeleted) { + this.viewOnly = true; + this.isFinalized = this.editorModel.status == DmpStatus.Finalized; this.formGroup.disable(); + } else { + this.viewOnly = false; } }