debian-mirror-gitlab/app/assets/javascripts/ide/components/jobs/item.vue

37 lines
701 B
Vue
Raw Normal View History

2018-11-08 19:23:39 +05:30
<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">
2018-12-23 12:14:25 +05:30
<job-description :job="job" class="append-right-default" />
2018-11-08 19:23:39 +05:30
<div class="ml-auto align-self-center">
2018-12-23 12:14:25 +05:30
<button v-if="job.started" type="button" class="btn btn-default btn-sm" @click="clickViewLog">
2018-11-08 19:23:39 +05:30
{{ __('View log') }}
</button>
</div>
</div>
</template>