2018-11-08 19:23:39 +05:30
|
|
|
<script>
|
2021-01-29 00:20:46 +05:30
|
|
|
import { GlButton } from '@gitlab/ui';
|
2018-11-08 19:23:39 +05:30
|
|
|
import JobDescription from './detail/description.vue';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
JobDescription,
|
2021-01-29 00:20:46 +05:30
|
|
|
GlButton,
|
2018-11-08 19:23:39 +05:30
|
|
|
},
|
|
|
|
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">
|
2020-07-28 23:09:34 +05:30
|
|
|
<job-description :job="job" class="gl-mr-3" />
|
2018-11-08 19:23:39 +05:30
|
|
|
<div class="ml-auto align-self-center">
|
2021-01-29 00:20:46 +05:30
|
|
|
<gl-button v-if="job.started" category="secondary" size="small" @click="clickViewLog">
|
2018-11-08 19:23:39 +05:30
|
|
|
{{ __('View log') }}
|
2021-01-29 00:20:46 +05:30
|
|
|
</gl-button>
|
2018-11-08 19:23:39 +05:30
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|