blob: d979c0efaf2398875e9822b8ecaa0573f68b920d (
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
|
<script>
import CiIcon from '~/vue_shared/components/ci_icon.vue';
export default {
components: {
CiIcon,
},
props: {
schedule: {
type: Object,
required: true,
},
},
computed: {
hasPipeline() {
return this.schedule.lastPipeline;
},
lastPipelineStatus() {
return this.schedule?.lastPipeline?.detailedStatus;
},
},
};
</script>
<template>
<div data-testid="last-pipeline-status">
<ci-icon
v-if="hasPipeline"
:status="lastPipelineStatus"
show-status-text
class="gl-vertical-align-middle"
/>
<span v-else data-testid="pipeline-schedule-status-text">
{{ s__('PipelineSchedules|None') }}
</span>
</div>
</template>
|