blob: 48d59bf6e7cba88c20515aa3f46235bc5e8dd2d6 (
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
|
<script>
import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue';
export default {
components: {
TimeAgoTooltip,
},
props: {
schedule: {
type: Object,
required: true,
},
},
computed: {
showTimeAgo() {
return this.schedule.active && this.schedule.nextRunAt;
},
realNextRunTime() {
return this.schedule.realNextRun;
},
},
};
</script>
<template>
<div>
<time-ago-tooltip v-if="showTimeAgo" :time="realNextRunTime" />
<span v-else data-testid="pipeline-schedule-inactive">
{{ s__('PipelineSchedules|Inactive') }}
</span>
</div>
</template>
|