Add tooltip to the review request checkbox (close #7227)

This commit is contained in:
Quincy Morgan
2020-12-03 13:50:56 -05:00
parent 9f6aaf2438
commit a85ac34a35
3 changed files with 7 additions and 0 deletions

View File

@@ -580,6 +580,7 @@ en:
upload_explanation: "The changes you upload will be visible on all maps that use OpenStreetMap data."
upload_explanation_with_user: "The changes you upload as {user} will be visible on all maps that use OpenStreetMap data."
request_review: "I would like someone to review my edits."
request_review_info: "Unsure about something? Invite an experienced mapper to check your work once it's live."
save: Upload
cancel: Cancel
changes: Changes

View File

@@ -769,6 +769,7 @@
"upload_explanation": "The changes you upload will be visible on all maps that use OpenStreetMap data.",
"upload_explanation_with_user": "The changes you upload as {user} will be visible on all maps that use OpenStreetMap data.",
"request_review": "I would like someone to review my edits.",
"request_review_info": "Unsure about something? Invite an experienced mapper to check your work once it's live.",
"save": "Upload",
"cancel": "Cancel",
"changes": "Changes",

View File

@@ -323,6 +323,11 @@ export function uiCommit(context) {
.append('label')
.attr('for', requestReviewDomId);
if (!labelEnter.empty()) {
labelEnter
.call(uiTooltip().title(t.html('commit.request_review_info')).placement('top'));
}
labelEnter
.append('input')
.attr('type', 'checkbox')