blob: 56d50026f1792ec4269396cc5d8178088a1797af (
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>
import { GlIcon, GlLink } from '@gitlab/ui';
export default {
components: {
GlIcon,
GlLink,
},
props: {
schedule: {
type: Object,
required: true,
},
},
computed: {
iconName() {
return this.schedule.forTag ? 'tag' : 'fork';
},
refPath() {
return this.schedule.refPath;
},
refDisplay() {
return this.schedule.refForDisplay;
},
},
};
</script>
<template>
<div data-testid="pipeline-schedule-target">
<span v-if="refPath">
<gl-icon :name="iconName" />
<gl-link :href="refPath" class="gl-text-gray-900">{{ refDisplay }}</gl-link>
</span>
<span v-else>
{{ s__('PipelineSchedules|None') }}
</span>
</div>
</template>
|