Commit 8c1041ac authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '215352-update-cancel-comment-note-text' into 'master'

Update the cancel comment note text

Closes #215352

See merge request gitlab-org/gitlab!30189
parents d8c8426b 9ff1a75d
...@@ -256,7 +256,7 @@ export default class Notes { ...@@ -256,7 +256,7 @@ export default class Notes {
discussionNoteForm = $textarea.closest('.js-discussion-note-form'); discussionNoteForm = $textarea.closest('.js-discussion-note-form');
if (discussionNoteForm.length) { if (discussionNoteForm.length) {
if ($textarea.val() !== '') { if ($textarea.val() !== '') {
if (!window.confirm(__('Are you sure you want to cancel creating this comment?'))) { if (!window.confirm(__('Your comment will be discarded.'))) {
return; return;
} }
} }
...@@ -268,7 +268,7 @@ export default class Notes { ...@@ -268,7 +268,7 @@ export default class Notes {
originalText = $textarea.closest('form').data('originalNote'); originalText = $textarea.closest('form').data('originalNote');
newText = $textarea.val(); newText = $textarea.val();
if (originalText !== newText) { if (originalText !== newText) {
if (!window.confirm(__('Are you sure you want to cancel editing this comment?'))) { if (!window.confirm(__('Are you sure you want to discard this comment?'))) {
return; return;
} }
} }
......
---
title: Update the cancel comment note text to a less ambiguous statement.
merge_request: 30189
author:
type: changed
...@@ -2420,9 +2420,6 @@ msgstr "" ...@@ -2420,9 +2420,6 @@ msgstr ""
msgid "Are you sure that you want to unarchive this project?" msgid "Are you sure that you want to unarchive this project?"
msgstr "" msgstr ""
msgid "Are you sure you want to cancel creating this comment?"
msgstr ""
msgid "Are you sure you want to cancel editing this comment?" msgid "Are you sure you want to cancel editing this comment?"
msgstr "" msgstr ""
...@@ -2456,6 +2453,9 @@ msgstr "" ...@@ -2456,6 +2453,9 @@ msgstr ""
msgid "Are you sure you want to deploy this environment?" msgid "Are you sure you want to deploy this environment?"
msgstr "" msgstr ""
msgid "Are you sure you want to discard this comment?"
msgstr ""
msgid "Are you sure you want to erase this build?" msgid "Are you sure you want to erase this build?"
msgstr "" msgstr ""
...@@ -24252,6 +24252,9 @@ msgstr "" ...@@ -24252,6 +24252,9 @@ msgstr ""
msgid "Your comment could not be updated! Please check your network connection and try again." msgid "Your comment could not be updated! Please check your network connection and try again."
msgstr "" msgstr ""
msgid "Your comment will be discarded."
msgstr ""
msgid "Your custom stage '%{title}' was created" msgid "Your custom stage '%{title}' was created"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment