blob: 32ca623ca45ff9c7b2ccaa8abf229f0c0b94cd44 (
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>
import { GlLink } from '@gitlab/ui';
import { ACTION_LABELS } from '../constants';
export default {
components: { GlLink },
i18n: {
ACTION_LABELS,
},
props: {
actions: {
required: true,
type: Object,
},
},
};
</script>
<template>
<ul>
<li v-for="(value, action) in actions" :key="action">
<span v-if="value.completed">{{ $options.i18n.ACTION_LABELS[action].title }}</span>
<span v-else>
<gl-link :href="value.url">{{ $options.i18n.ACTION_LABELS[action].title }}</gl-link>
</span>
</li>
</ul>
</template>
|