blob: 4867a21493f8aeee8b9581aff3170201948b04f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<script>
import InlineFindings from './inline_findings.vue';
export default {
components: {
InlineFindings,
},
props: {
line: {
type: Object,
required: true,
},
},
computed: {
parsedCodeQuality() {
return (this.line.left ?? this.line.right)?.codequality;
},
codeQualityLineNumber() {
return this.parsedCodeQuality[0]?.line;
},
},
methods: {
hideInlineFindings() {
this.$emit('hideInlineFindings', this.codeQualityLineNumber);
},
},
};
</script>
<template>
<inline-findings :code-quality="parsedCodeQuality" @hideInlineFindings="hideInlineFindings" />
</template>
|