Welcome to mirror list, hosted at ThFree Co, Russian Federation.

learn_gitlab_b.vue « components « learn_gitlab « projects « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0393793bfe14f282fa4208cd6c0398b9d5244816 (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_TEXT } from '../constants';

export default {
  components: { GlLink },
  i18n: {
    ACTION_TEXT,
  },
  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_TEXT[action] }}</span>
      <span v-else>
        <gl-link :href="value.url">{{ $options.i18n.ACTION_TEXT[action] }}</gl-link>
      </span>
    </li>
  </ul>
</template>