diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-20 14:18:08 +0300 |
commit | 5afcbe03ead9ada87621888a31a62652b10a7e4f (patch) | |
tree | 9918b67a0d0f0bafa6542e839a8be37adf73102d /app/assets/javascripts/diffs/components/diff_inline_findings_item.vue | |
parent | c97c0201564848c1f53226fe19d71fdcc472f7d0 (diff) |
Add latest changes from gitlab-org/gitlab@16-4-stable-eev16.4.0-rc42
Diffstat (limited to 'app/assets/javascripts/diffs/components/diff_inline_findings_item.vue')
-rw-r--r-- | app/assets/javascripts/diffs/components/diff_inline_findings_item.vue | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/app/assets/javascripts/diffs/components/diff_inline_findings_item.vue b/app/assets/javascripts/diffs/components/diff_inline_findings_item.vue index 5cc2a3079b0..8a30d6ee7f8 100644 --- a/app/assets/javascripts/diffs/components/diff_inline_findings_item.vue +++ b/app/assets/javascripts/diffs/components/diff_inline_findings_item.vue @@ -1,23 +1,15 @@ <script> -import { GlLink, GlIcon } from '@gitlab/ui'; -// eslint-disable-next-line no-restricted-imports -import { mapActions } from 'vuex'; +import { GlIcon } from '@gitlab/ui'; import { getSeverity } from '~/ci/reports/utils'; -import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin'; export default { - components: { GlLink, GlIcon }, - mixins: [glFeatureFlagsMixin()], + components: { GlIcon }, + props: { finding: { type: Object, required: true, }, - link: { - type: Boolean, - required: false, - default: true, - }, }, computed: { enhancedFinding() { @@ -27,12 +19,6 @@ export default { return `${this.finding.severity} - ${this.finding.description}`; }, }, - methods: { - toggleDrawer() { - this.setDrawer(this.finding); - }, - ...mapActions('findingsDrawer', ['setDrawer']), - }, }; </script> @@ -46,17 +32,7 @@ export default { class="inline-findings-severity-icon" /> </span> - <span - v-if="glFeatures.codeQualityInlineDrawer" - data-testid="description-button-section" - class="gl-display-flex" - > - <gl-link v-if="link" category="primary" variant="link" @click="toggleDrawer"> - {{ listText }}</gl-link - > - <span v-else>{{ listText }}</span> - </span> - <span v-else data-testid="description-plain-text" class="gl-display-flex"> + <span data-testid="description-plain-text" class="gl-display-flex"> {{ listText }} </span> </li> |