From 669e5b8f2bd3ff23f49c772538d6cef8ca49c2a3 Mon Sep 17 00:00:00 2001 From: CollinBeczak Date: Mon, 28 Oct 2024 13:47:07 -0500 Subject: [PATCH] add conditional changes review header --- src/components/TaskConfirmationModal/Messages.js | 7 ++++++- .../TaskConfirmationModal/TaskConfirmationModal.jsx | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/TaskConfirmationModal/Messages.js b/src/components/TaskConfirmationModal/Messages.js index bb3801ea..176e3371 100644 --- a/src/components/TaskConfirmationModal/Messages.js +++ b/src/components/TaskConfirmationModal/Messages.js @@ -9,6 +9,11 @@ export default defineMessages({ defaultMessage: "Please Confirm", }, + reviewChangesHeader: { + id: 'TaskConfirmationModal.reviewChangesHeader', + defaultMessage: "Review Your Changes", + }, + submitRevisionHeader: { id: 'TaskConfirmationModal.submitRevisionHeader', defaultMessage: "Please Confirm Revision", @@ -71,7 +76,7 @@ export default defineMessages({ osmUploadNotice: { id: 'TaskConfirmationModal.osmUploadNotices', - defaultMessage: "On submission, a changeset will be submitted to OpenStreetMap with your tag changes.", + defaultMessage: "You are about to edit OpenStreetMap. The following changes will be published and become visible to everyone:", }, osmViewChangesetLabel: { diff --git a/src/components/TaskConfirmationModal/TaskConfirmationModal.jsx b/src/components/TaskConfirmationModal/TaskConfirmationModal.jsx index b660445e..115acf18 100644 --- a/src/components/TaskConfirmationModal/TaskConfirmationModal.jsx +++ b/src/components/TaskConfirmationModal/TaskConfirmationModal.jsx @@ -186,7 +186,8 @@ export class TaskConfirmationModal extends Component { : ) : - _isUndefined(this.props.needsRevised) ? + _isUndefined(this.props.needsRevised) ? applyingTagChanges ? + : : (this.props.needsRevised === TaskReviewStatus.needed ? :