blob: 334fc01c9f7df7037c5b634424cab5cf82aaa807 (
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
33
34
35
36
37
38
39
|
<script>
export default {
components: {
MrSecurityWidget: () =>
import(
'~/vue_merge_request_widget/extensions/security_reports/mr_widget_security_reports.vue'
),
},
props: {
mr: {
type: Object,
required: true,
},
},
computed: {
widgets() {
return ['MrSecurityWidget'];
},
},
};
</script>
<template>
<section
v-if="widgets.length"
role="region"
:aria-label="__('Merge request reports')"
data-testid="mr-widget-app"
class="mr-widget-section"
>
<component
:is="widget"
v-for="(widget, index) in widgets"
:key="widget.name || index"
:mr="mr"
class="mr-widget-section"
/>
</section>
</template>
|