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

item.vue « jobs « components « ide « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: be8bf77bba0c6dc63e91fea9fb5978eac019d07d (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
<script>
import JobDescription from './detail/description.vue';

export default {
  components: {
    JobDescription,
  },
  props: {
    job: {
      type: Object,
      required: true,
    },
  },
  computed: {
    jobId() {
      return `#${this.job.id}`;
    },
  },
  methods: {
    clickViewLog() {
      this.$emit('clickViewLog', this.job);
    },
  },
};
</script>

<template>
  <div class="ide-job-item">
    <job-description :job="job" class="append-right-default" />
    <div class="ml-auto align-self-center">
      <button v-if="job.started" type="button" class="btn btn-default btn-sm" @click="clickViewLog">
        {{ __('View log') }}
      </button>
    </div>
  </div>
</template>