blob: 18bd2593c2a27b9e01bacef6eb6737377df807be (
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
|
<script>
import JobContainerItem from './job_container_item.vue';
export default {
components: {
JobContainerItem,
},
props: {
jobs: {
type: Array,
required: true,
},
jobId: {
type: Number,
required: true,
},
},
methods: {
isJobActive(currentJobId) {
return this.jobId === currentJobId;
},
},
};
</script>
<template>
<div class="block builds-container">
<b class="gl-display-flex gl-mb-2 gl-font-weight-semibold">{{ __('Related jobs') }}</b>
<job-container-item
v-for="job in jobs"
:key="job.id"
:job="job"
:is-active="isJobActive(job.id)"
/>
</div>
</template>
|