diff --git a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html index ecb85e1a5..92937132d 100644 --- a/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html +++ b/dmp-frontend/src/app/ui/admin/description-template/editor/description-template-editor.component.html @@ -291,10 +291,10 @@
diff --git a/dmp-frontend/src/assets/i18n/en.json b/dmp-frontend/src/assets/i18n/en.json index 9d5765fb7..c5ded5c58 100644 --- a/dmp-frontend/src/assets/i18n/en.json +++ b/dmp-frontend/src/assets/i18n/en.json @@ -220,6 +220,14 @@ "TOTAL": "Total", "SELECTED": "Selected" } + }, + "PENDING-FORM-CHANGES-DIALOG": { + "TITLE": "You have unsaved changes!", + "MESSAGE": "If you leave, your changes will be lost.", + "ACTIONS": { + "CANCEL": "Cancel", + "LEAVE": "LEAVE" + } } }, "SETTINGS-PICKER": { @@ -2097,7 +2105,7 @@ "SELECT": "Select an option", "LIKE": "Search" }, - "DATASET-EDITOR": { + "DATASET-EDITOR1": { "TITLE": { "NEW": "New Data Management Plan", "EDIT": "Edit", diff --git a/dmp-frontend/src/common/forms/pending-form-changes/pending-form-changes-guard.service.ts b/dmp-frontend/src/common/forms/pending-form-changes/pending-form-changes-guard.service.ts index c8a5166d9..978c9f460 100644 --- a/dmp-frontend/src/common/forms/pending-form-changes/pending-form-changes-guard.service.ts +++ b/dmp-frontend/src/common/forms/pending-form-changes/pending-form-changes-guard.service.ts @@ -23,9 +23,10 @@ export class PendingChangesGuard implements CanDeactivate x ? true : false));