diff options
Diffstat (limited to 'app/assets/javascripts/related_issues/components')
3 files changed, 11 insertions, 12 deletions
diff --git a/app/assets/javascripts/related_issues/components/related_issuable_input.vue b/app/assets/javascripts/related_issues/components/related_issuable_input.vue index 270d4632a54..09ecad2d90e 100644 --- a/app/assets/javascripts/related_issues/components/related_issuable_input.vue +++ b/app/assets/javascripts/related_issues/components/related_issuable_input.vue @@ -7,14 +7,14 @@ import { inputPlaceholderTextMap, issuableTypesMap, } from '../constants'; -import issueToken from './issue_token.vue'; +import IssueToken from './issue_token.vue'; const SPACE_FACTOR = 1; export default { name: 'RelatedIssuableInput', components: { - issueToken, + IssueToken, }, props: { inputId: { diff --git a/app/assets/javascripts/related_issues/components/related_issues_block.vue b/app/assets/javascripts/related_issues/components/related_issues_block.vue index 5b4a6d1fe0d..53f2dbbbbd7 100644 --- a/app/assets/javascripts/related_issues/components/related_issues_block.vue +++ b/app/assets/javascripts/related_issues/components/related_issues_block.vue @@ -3,7 +3,6 @@ import { GlLink, GlIcon, GlButton } from '@gitlab/ui'; import { __ } from '~/locale'; import { issuableIconMap, - issuableQaClassMap, linkedIssueTypesMap, linkedIssueTypesTextMap, issuablesBlockHeaderTextMap, @@ -142,9 +141,6 @@ export default { issuableTypeIcon() { return issuableIconMap[this.issuableType]; }, - qaClass() { - return issuableQaClassMap[this.issuableType]; - }, toggleIcon() { return this.isOpen ? 'chevron-lg-up' : 'chevron-lg-down'; }, @@ -166,11 +162,15 @@ export default { </script> <template> - <div id="related-issues" class="related-issues-block gl-mt-5"> - <div class="card card-slim gl-overflow-hidden"> + <div id="related-issues" class="related-issues-block"> + <div class="card card-slim gl-overflow-hidden gl-mt-5 gl-mb-0"> <div - :class="{ 'panel-empty-heading border-bottom-0': !hasBody, 'gl-border-b-0': !isOpen }" - class="gl-display-flex gl-justify-content-space-between gl-line-height-24 gl-py-3 gl-px-5 gl-bg-gray-10 gl-border-b-1 gl-border-b-solid gl-border-b-gray-100" + :class="{ + 'panel-empty-heading border-bottom-0': !hasBody, + 'gl-border-b-1': isOpen, + 'gl-border-b-0': !isOpen, + }" + class="gl-display-flex gl-justify-content-space-between gl-line-height-24 gl-py-3 gl-px-5 gl-bg-gray-10 gl-border-b-solid gl-border-b-gray-100" > <h3 class="card-title h5 gl-my-0 gl-display-flex gl-align-items-center gl-flex-grow-1"> <gl-link @@ -205,7 +205,6 @@ export default { data-qa-selector="related_issues_plus_button" data-testid="related-issues-plus-button" :aria-label="addIssuableButtonText" - :class="qaClass" class="gl-ml-3" @click="addButtonClick" > diff --git a/app/assets/javascripts/related_issues/components/related_issues_root.vue b/app/assets/javascripts/related_issues/components/related_issues_root.vue index cad5037d7e4..ae40232df6f 100644 --- a/app/assets/javascripts/related_issues/components/related_issues_root.vue +++ b/app/assets/javascripts/related_issues/components/related_issues_root.vue @@ -40,7 +40,7 @@ import RelatedIssuesBlock from './related_issues_block.vue'; export default { name: 'RelatedIssuesRoot', components: { - relatedIssuesBlock: RelatedIssuesBlock, + RelatedIssuesBlock, }, props: { endpoint: { |