diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-05 09:08:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-05 09:08:25 +0300 |
commit | b6d0149b925c57cbfff0f2bade605259152e4eea (patch) | |
tree | 95beb9302b014f8686bf4346aaaa523c59448383 /app/assets/javascripts/issues | |
parent | 5a9763751b60521b606f2856dfdc1312c8ce416d (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/issues')
-rw-r--r-- | app/assets/javascripts/issues/show/components/description.vue | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/app/assets/javascripts/issues/show/components/description.vue b/app/assets/javascripts/issues/show/components/description.vue index d75f686051d..ddfef35ad6f 100644 --- a/app/assets/javascripts/issues/show/components/description.vue +++ b/app/assets/javascripts/issues/show/components/description.vue @@ -1,6 +1,13 @@ <script> -import { GlSafeHtmlDirective as SafeHtml, GlModal, GlTooltip, GlModalDirective } from '@gitlab/ui'; +import { + GlSafeHtmlDirective as SafeHtml, + GlModal, + GlToast, + GlTooltip, + GlModalDirective, +} from '@gitlab/ui'; import $ from 'jquery'; +import Vue from 'vue'; import { convertToGraphQLId } from '~/graphql_shared/utils'; import { TYPE_WORK_ITEM } from '~/graphql_shared/constants'; import createFlash from '~/flash'; @@ -14,6 +21,8 @@ import WorkItemDetailModal from '~/work_items/components/work_item_detail_modal. import CreateWorkItem from '~/work_items/pages/create_work_item.vue'; import animateMixin from '../mixins/animate'; +Vue.use(GlToast); + export default { directives: { SafeHtml, @@ -246,6 +255,9 @@ export default { this.$emit('updateDescription', description); this.closeCreateTaskModal(); }, + handleDeleteTask() { + this.$toast.show(s__('WorkItem|Work item deleted')); + }, updateWorkItemIdUrlQuery(workItemId) { updateHistory({ url: setUrlParams({ work_item_id: workItemId }), @@ -306,8 +318,10 @@ export default { /> </gl-modal> <work-item-detail-modal + :can-update="canUpdate" :visible="showWorkItemDetailModal" :work-item-id="workItemId" + @workItemDeleted="handleDeleteTask" @close="closeWorkItemDetailModal" /> <template v-if="workItemsEnabled"> |