Skip to content

Commit

Permalink
add conditional changes review header
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Nov 7, 2024
1 parent fd9524f commit 669e5b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/components/TaskConfirmationModal/Messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ export class TaskConfirmationModal extends Component {
<FormattedMessage {...messages.inMetaReviewHeader} /> :
<FormattedMessage {...messages.inReviewHeader} />
) :
_isUndefined(this.props.needsRevised) ?
_isUndefined(this.props.needsRevised) ? applyingTagChanges ?
<FormattedMessage {...messages.reviewChangesHeader} /> :
<FormattedMessage {...messages.header} /> :
(this.props.needsRevised === TaskReviewStatus.needed ?
<FormattedMessage {...messages.submitRevisionHeader} /> :
Expand Down

0 comments on commit 669e5b8

Please sign in to comment.