Commit e34e0351 authored by Marcin Sedlak-Jakubowski's avatar Marcin Sedlak-Jakubowski Committed by Savas Vedova

Change Design sidebar to say "Add to do"

To follow the format in issues, MRs, epics, and alerts.
parent 0a45fdb9
......@@ -44,13 +44,13 @@ export const MOVE_DESIGN_ERROR = __(
'Something went wrong when reordering designs. Please try again',
);
export const CREATE_DESIGN_TODO_ERROR = __('Failed to create To-Do for the design.');
export const CREATE_DESIGN_TODO_ERROR = __('Failed to create a to-do item for the design.');
export const CREATE_DESIGN_TODO_EXISTS_ERROR = __('There is already a To-Do for this design.');
export const CREATE_DESIGN_TODO_EXISTS_ERROR = __('There is already a to-do item for this design.');
export const DELETE_DESIGN_TODO_ERROR = __('Failed to remove To-Do for the design.');
export const DELETE_DESIGN_TODO_ERROR = __('Failed to remove a to-do item for the design.');
export const TOGGLE_TODO_ERROR = __('Failed to toggle To-Do for the design.');
export const TOGGLE_TODO_ERROR = __('Failed to toggle the to-do status for the design.');
const MAX_SKIPPED_FILES_LISTINGS = 5;
......
......@@ -15,7 +15,7 @@ export default {
},
computed: {
buttonLabel() {
return this.isTodo ? __('Mark as done') : __('Add a To Do');
return this.isTodo ? __('Mark as done') : __('Add a to do');
},
},
};
......
---
title: Change to-do formatting in Design error messages and sidebar
merge_request: 53040
author:
type: fixed
......@@ -1635,9 +1635,6 @@ msgstr ""
msgid "Add a Grafana button in the admin sidebar, monitoring section, to access a variety of statistics on the health and performance of GitLab."
msgstr ""
msgid "Add a To Do"
msgstr ""
msgid "Add a bullet list"
msgstr ""
......@@ -12038,10 +12035,10 @@ msgstr ""
msgid "Failed to create Merge Request. Please try again."
msgstr ""
msgid "Failed to create To-Do for the design."
msgid "Failed to create a branch for this issue. Please try again."
msgstr ""
msgid "Failed to create a branch for this issue. Please try again."
msgid "Failed to create a to-do item for the design."
msgstr ""
msgid "Failed to create framework"
......@@ -12158,10 +12155,10 @@ msgstr ""
msgid "Failed to publish issue on status page."
msgstr ""
msgid "Failed to remove To-Do for the design."
msgid "Failed to remove a Zoom meeting"
msgstr ""
msgid "Failed to remove a Zoom meeting"
msgid "Failed to remove a to-do item for the design."
msgstr ""
msgid "Failed to remove issue from board, please try again."
......@@ -12206,7 +12203,7 @@ msgstr ""
msgid "Failed to signing using smartcard authentication"
msgstr ""
msgid "Failed to toggle To-Do for the design."
msgid "Failed to toggle the to-do status for the design."
msgstr ""
msgid "Failed to update branch!"
......@@ -29112,10 +29109,10 @@ msgstr ""
msgid "There is a halted Elasticsearch migration"
msgstr ""
msgid "There is already a To-Do for this design."
msgid "There is already a repository with that name on disk"
msgstr ""
msgid "There is already a repository with that name on disk"
msgid "There is already a to-do item for this design."
msgstr ""
msgid "There is no chart data available."
......
......@@ -111,7 +111,7 @@ describe('Design management design todo button', () => {
});
it('renders correct button text', () => {
expect(wrapper.text()).toBe('Add a To Do');
expect(wrapper.text()).toBe('Add a to do');
});
describe('when clicked', () => {
......
......@@ -33,7 +33,7 @@ describe('Todo Button', () => {
it.each`
label | isTodo
${'Mark as done'} | ${true}
${'Add a To Do'} | ${false}
${'Add a to do'} | ${false}
`('sets correct label when isTodo is $isTodo', ({ label, isTodo }) => {
createComponent({ isTodo });
......
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