blob: f1c1bde256f395878b41b09387e93160e49189ff (
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
|
<script>
export default {
props: {
mr: {
type: Object,
required: true,
},
},
computed: {
widgets() {
return [].filter((w) => w);
},
},
};
</script>
<template>
<section role="region" :aria-label="__('Merge request reports')" data-testid="mr-widget-app">
<component
:is="widget"
v-for="(widget, index) in widgets"
:key="widget.name || index"
:mr="mr"
:class="{ 'mr-widget-border-top': index === 0 }"
/>
</section>
</template>
|