diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-10 00:08:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-10 00:08:15 +0300 |
commit | 21a5ef21750a02e4536077833400158de7e4ff95 (patch) | |
tree | b75e7834afc7f9be05e328e90babd86430676efe /app/assets/javascripts/issues/show | |
parent | cc6b6a7b78befba0fa003def271d446c51d67088 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/issues/show')
-rw-r--r-- | app/assets/javascripts/issues/show/components/delete_issue_modal.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/issues/show/components/delete_issue_modal.vue b/app/assets/javascripts/issues/show/components/delete_issue_modal.vue index f86ee11e64b..26e82f10c3d 100644 --- a/app/assets/javascripts/issues/show/components/delete_issue_modal.vue +++ b/app/assets/javascripts/issues/show/components/delete_issue_modal.vue @@ -1,5 +1,6 @@ <script> import { GlModal } from '@gitlab/ui'; +import { TYPE_EPIC } from '~/issues/constants'; import csrf from '~/lib/utils/csrf'; import { capitalizeFirstCharacter } from '~/lib/utils/text_utility'; import { __, sprintf } from '~/locale'; @@ -40,7 +41,7 @@ export default { }; }, bodyText() { - return this.issueType.toLowerCase() === 'epic' + return this.issueType.toLowerCase() === TYPE_EPIC ? __('Delete this epic and all descendants?') : sprintf(__('%{issuableType} will be removed! Are you sure?'), { issuableType: capitalizeFirstCharacter(this.issueType), |