diff --git a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.html b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.html index 5df299c4d..8949d4b31 100644 --- a/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.html +++ b/dmp-frontend/src/app/ui/dmp/dmp-editor-blueprint/dmp-editor.component.html @@ -57,8 +57,10 @@ +
+ +
-
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 f1e601861..83bdacbcf 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 @@ -123,7 +123,7 @@ export class DmpEditorComponent extends BaseEditor implemen } protected get canFinalize(): boolean { - return !this.isDeleted && !this.isNew && this.canEdit && this.isLockedByUser && !this.isFinalized && this.item.status == DmpStatus.Draft && (this.hasPermission(this.authService.permissionEnum.EditDmp) || this.item?.authorizationFlags?.some(x => x === AppPermission.EditDmp)); + return !this.isDeleted && !this.isNew && this.canEdit && this.isLockedByUser && !this.isFinalized && (this.hasPermission(this.authService.permissionEnum.EditDmp) || this.item?.authorizationFlags?.some(x => x === AppPermission.EditDmp)); } protected get canReverseFinalize(): boolean { diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index a91f8cec1..3bf36259a 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -1596,6 +1596,10 @@ "DISCARD-EDITED-CONFIRM": "Yes, revert changes.", "DISCARD-EDITED-DENY": "No." }, + "FINALIZE": { + "FINALIZE": "Finalize", + "CAN-NOT-FINALIZE": "Save your changes first" + }, "SAVE": "Save", "DELETE": "Delete", "ADD-DESCRIPTION-IN-SECTION": "Add Description", @@ -1609,7 +1613,6 @@ "EXPORT": "Export", "SAVE-AND-CLOSE": "Save & Close", "SAVE-AND-CONTINUE": "Save & Continue", - "FINALIZE": "Finalize", "REVERSE": "Undo Finalization", "LOCKED": "Locked" },