Skip to content
Snippets Groups Projects
Commit ec6d3271 authored by Marcel van Remmerden's avatar Marcel van Remmerden Committed by Denys Mishunov
Browse files

Fixes all visible mentions of work items in UI

Changelog: fixed
parent 85bef9fc
No related branches found
No related tags found
1 merge request!92029Fixes all visible mentions of work items in UI
......@@ -465,7 +465,7 @@ export default {
},
handleDeleteTask(description) {
this.$emit('updateDescription', description);
this.$toast.show(s__('WorkItem|Work item deleted'));
this.$toast.show(s__('WorkItem|Task deleted'));
},
updateWorkItemIdUrlQuery(workItemId) {
updateHistory({
......
......@@ -5,7 +5,7 @@ import Tracking from '~/tracking';
export default {
i18n: {
deleteWorkItem: s__('WorkItem|Delete work item'),
deleteTask: s__('WorkItem|Delete task'),
},
components: {
GlDropdown,
......@@ -54,7 +54,7 @@ export default {
right
>
<gl-dropdown-item v-gl-modal="'work-item-confirm-delete'">{{
$options.i18n.deleteWorkItem
$options.i18n.deleteTask
}}</gl-dropdown-item>
</gl-dropdown>
<gl-modal
......@@ -66,9 +66,7 @@ export default {
@hide="handleCancelDeleteWorkItem"
>
{{
s__(
'WorkItem|Are you sure you want to delete the work item? This action cannot be reversed.',
)
s__('WorkItem|Are you sure you want to delete the task? This action cannot be reversed.')
}}
</gl-modal>
</div>
......
......@@ -80,7 +80,7 @@ export default {
.catch((e) => {
this.error =
e.message ||
s__('WorkItem|Something went wrong when deleting the work item. Please try again.');
s__('WorkItem|Something went wrong when deleting the task. Please try again.');
});
},
closeModal() {
......
......@@ -10,7 +10,7 @@ import projectWorkItemTypesQuery from '../graphql/project_work_item_types.query.
import ItemTitle from '../components/item_title.vue';
export default {
createErrorText: s__('WorkItem|Something went wrong when creating a work item. Please try again'),
createErrorText: s__('WorkItem|Something went wrong when creating a task. Please try again'),
fetchTypesErrorText: s__(
'WorkItem|Something went wrong when fetching work item types. Please try again',
),
......
......@@ -49,4 +49,4 @@ To edit a task:
To delete a task:
1. In the issue description, select the task.
1. From the options menu (**{ellipsis_v}**), select **Delete work item**.
1. From the options menu (**{ellipsis_v}**), select **Delete task**.
......@@ -43870,7 +43870,7 @@ msgstr ""
msgid "WorkItem|Are you sure you want to cancel editing?"
msgstr ""
 
msgid "WorkItem|Are you sure you want to delete the work item? This action cannot be reversed."
msgid "WorkItem|Are you sure you want to delete the task? This action cannot be reversed."
msgstr ""
 
msgid "WorkItem|Assignee"
......@@ -43896,7 +43896,7 @@ msgstr ""
msgid "WorkItem|Create work item"
msgstr ""
 
msgid "WorkItem|Delete work item"
msgid "WorkItem|Delete task"
msgstr ""
 
msgid "WorkItem|Expand child items"
......@@ -43917,9 +43917,15 @@ msgstr ""
msgid "WorkItem|Select type"
msgstr ""
 
msgid "WorkItem|Something went wrong when creating a task. Please try again"
msgstr ""
msgid "WorkItem|Something went wrong when creating a work item. Please try again"
msgstr ""
 
msgid "WorkItem|Something went wrong when deleting the task. Please try again."
msgstr ""
msgid "WorkItem|Something went wrong when deleting the work item. Please try again."
msgstr ""
 
......@@ -43935,6 +43941,9 @@ msgstr ""
msgid "WorkItem|Something went wrong while updating the work item. Please try again."
msgstr ""
 
msgid "WorkItem|Task deleted"
msgstr ""
msgid "WorkItem|Type"
msgstr ""
 
......@@ -332,7 +332,7 @@ describe('Description component', () => {
findWorkItemDetailModal().vm.$emit('workItemDeleted', newDesc);
expect(wrapper.emitted('updateDescription')).toEqual([[newDesc]]);
expect($toast.show).toHaveBeenCalledWith('Work item deleted');
expect($toast.show).toHaveBeenCalledWith('Task deleted');
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment