Commit 668aed0e authored by Miguel Rincon's avatar Miguel Rincon

Merge branch '338699-update-draft-alert' into 'master'

Update wording of MR draft alert

See merge request gitlab-org/gitlab!70074
parents 6c0f5fac 6e3dbc52
...@@ -137,7 +137,7 @@ MergeRequest.hideCloseButton = function () { ...@@ -137,7 +137,7 @@ MergeRequest.hideCloseButton = function () {
MergeRequest.toggleDraftStatus = function (title, isReady) { MergeRequest.toggleDraftStatus = function (title, isReady) {
if (isReady) { if (isReady) {
createFlash({ createFlash({
message: __('The merge request can now be merged.'), message: __('Marked as ready. Merging is now allowed.'),
type: 'notice', type: 'notice',
}); });
} }
......
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
}, },
}) => { }) => {
createFlash({ createFlash({
message: __('The merge request can now be merged.'), message: __('Marked as ready. Merging is now allowed.'),
type: 'notice', type: 'notice',
}); });
$('.merge-request .detail-page-description .title').text(title); $('.merge-request .detail-page-description .title').text(title);
......
...@@ -20681,6 +20681,9 @@ msgstr "" ...@@ -20681,6 +20681,9 @@ msgstr ""
msgid "Marked For Deletion At - %{deletion_time}" msgid "Marked For Deletion At - %{deletion_time}"
msgstr "" msgstr ""
msgid "Marked as ready. Merging is now allowed."
msgstr ""
msgid "Marked this %{noun} as a draft." msgid "Marked this %{noun} as a draft."
msgstr "" msgstr ""
...@@ -33713,9 +33716,6 @@ msgstr "" ...@@ -33713,9 +33716,6 @@ msgstr ""
msgid "The merge conflicts for this merge request have already been resolved. Please return to the merge request." msgid "The merge conflicts for this merge request have already been resolved. Please return to the merge request."
msgstr "" msgstr ""
msgid "The merge request can now be merged."
msgstr ""
msgid "The metric must be one of %{metrics}." msgid "The metric must be one of %{metrics}."
msgstr "" msgstr ""
......
...@@ -64,7 +64,7 @@ describe('Wip', () => { ...@@ -64,7 +64,7 @@ describe('Wip', () => {
expect(vm.isMakingRequest).toBeTruthy(); expect(vm.isMakingRequest).toBeTruthy();
expect(eventHub.$emit).toHaveBeenCalledWith('UpdateWidgetData', mrObj); expect(eventHub.$emit).toHaveBeenCalledWith('UpdateWidgetData', mrObj);
expect(createFlash).toHaveBeenCalledWith({ expect(createFlash).toHaveBeenCalledWith({
message: 'The merge request can now be merged.', message: 'Marked as ready. Merging is now allowed.',
type: 'notice', type: 'notice',
}); });
done(); done();
......
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