Commit d688f6fe authored by Matthew Nearents's avatar Matthew Nearents Committed by Natalia Tepluhina

Resolve "Remove hyphen in To-Do in Design Management"

parent 139b4899
......@@ -126,7 +126,7 @@ export default {
v-if="showTodoButton"
class="gl-py-4 gl-mb-4 gl-display-flex gl-justify-content-space-between gl-align-items-center gl-border-b-1 gl-border-b-solid gl-border-b-gray-100"
>
<span>{{ __('To-Do') }}</span>
<span>{{ __('To Do') }}</span>
<design-todo-button :design="design" @error="$emit('todoError', $event)" />
</div>
<h2 class="gl-font-weight-bold gl-mt-0">
......
......@@ -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');
},
},
};
......
......@@ -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