debian-mirror-gitlab/app/assets/javascripts/ide/components/jobs/item.vue
2020-08-09 17:44:08 +05:30

36 lines
688 B
Vue

<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="gl-mr-3" />
<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>