Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/issues/show/components/form.vue')
-rw-r--r--app/assets/javascripts/issues/show/components/form.vue9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/assets/javascripts/issues/show/components/form.vue b/app/assets/javascripts/issues/show/components/form.vue
index 831248d9603..047bdcdcefc 100644
--- a/app/assets/javascripts/issues/show/components/form.vue
+++ b/app/assets/javascripts/issues/show/components/form.vue
@@ -1,9 +1,10 @@
+<!-- eslint-disable vue/multi-word-component-names -->
<script>
import { GlAlert } from '@gitlab/ui';
import { getDraft, updateDraft, getLockVersion, clearDraft } from '~/lib/utils/autosave';
import { convertToGraphQLId } from '~/graphql_shared/utils';
import { TYPENAME_ISSUE, TYPENAME_USER } from '~/graphql_shared/constants';
-import { TYPE_ISSUE } from '~/issues/constants';
+import { TYPE_INCIDENT, TYPE_ISSUE } from '~/issues/constants';
import glFeatureFlagMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
import eventHub from '../event_hub';
import EditActions from './edit_actions.vue';
@@ -106,8 +107,8 @@ export default {
showLockedWarning() {
return this.formState.lockedWarningVisible && !this.formState.updateLoading;
},
- isIssueType() {
- return this.issuableType === TYPE_ISSUE;
+ showTypeField() {
+ return [TYPE_INCIDENT, TYPE_ISSUE].includes(this.issuableType);
},
resourceId() {
return this.issueId && convertToGraphQLId(TYPENAME_ISSUE, this.issueId);
@@ -201,7 +202,7 @@ export default {
</div>
</div>
<div class="row gl-gap-3">
- <div v-if="isIssueType" class="col-12 col-md-4 pr-md-0">
+ <div v-if="showTypeField" class="col-12 col-md-4 pr-md-0">
<issuable-type-field ref="issue-type" />
</div>