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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<script>
import { components, componentNames } from 'ee_else_ce/reports/components/issue_body';
import IssueStatusIcon from '~/reports/components/issue_status_icon.vue';
export default {
name: 'ReportItem',
components: {
IssueStatusIcon,
...components,
},
props: {
issue: {
type: Object,
required: true,
},
component: {
type: String,
required: false,
default: '',
validator: (value) => value === '' || Object.values(componentNames).includes(value),
},
// failed || success
status: {
type: String,
required: true,
},
statusIconSize: {
type: Number,
required: false,
default: 24,
},
isNew: {
type: Boolean,
required: false,
default: false,
},
showReportSectionStatusIcon: {
type: Boolean,
required: false,
default: true,
},
},
};
</script>
<template>
<li
:class="{ 'is-dismissed': issue.isDismissed }"
class="report-block-list-issue align-items-center"
data-qa-selector="report_item_row"
>
<issue-status-icon
v-if="showReportSectionStatusIcon"
:status="status"
:status-icon-size="statusIconSize"
class="gl-mr-3"
/>
<component :is="component" v-if="component" :issue="issue" :status="status" :is-new="isNew" />
</li>
</template>
|