|
|
@ -105,7 +105,6 @@ export default defineComponent({ |
|
|
|
intervalID: null as IntervalId | null, |
|
|
|
intervalID: null as IntervalId | null, |
|
|
|
currentJobStepsStates: [] as Array<Record<string, any>>, |
|
|
|
currentJobStepsStates: [] as Array<Record<string, any>>, |
|
|
|
artifacts: [] as Array<Record<string, any>>, |
|
|
|
artifacts: [] as Array<Record<string, any>>, |
|
|
|
onHoverRerunIndex: -1, |
|
|
|
|
|
|
|
menuVisible: false, |
|
|
|
menuVisible: false, |
|
|
|
isFullScreen: false, |
|
|
|
isFullScreen: false, |
|
|
|
timeVisible: { |
|
|
|
timeVisible: { |
|
|
@ -120,7 +119,7 @@ export default defineComponent({ |
|
|
|
link: '', |
|
|
|
link: '', |
|
|
|
title: '', |
|
|
|
title: '', |
|
|
|
titleHTML: '', |
|
|
|
titleHTML: '', |
|
|
|
status: 'unknown' as RunStatus, |
|
|
|
status: '' as RunStatus, // do not show the status before initialized, otherwise it would show an incorrect "error" icon |
|
|
|
canCancel: false, |
|
|
|
canCancel: false, |
|
|
|
canApprove: false, |
|
|
|
canApprove: false, |
|
|
|
canRerun: false, |
|
|
|
canRerun: false, |
|
|
@ -492,13 +491,13 @@ export default defineComponent({ |
|
|
|
<div class="action-view-left"> |
|
|
|
<div class="action-view-left"> |
|
|
|
<div class="job-group-section"> |
|
|
|
<div class="job-group-section"> |
|
|
|
<div class="job-brief-list"> |
|
|
|
<div class="job-brief-list"> |
|
|
|
<a class="job-brief-item" :href="run.link+'/jobs/'+index" :class="parseInt(jobIndex) === index ? 'selected' : ''" v-for="(job, index) in run.jobs" :key="job.id" @mouseenter="onHoverRerunIndex = job.id" @mouseleave="onHoverRerunIndex = -1"> |
|
|
|
<a class="job-brief-item" :href="run.link+'/jobs/'+index" :class="parseInt(jobIndex) === index ? 'selected' : ''" v-for="(job, index) in run.jobs" :key="job.id"> |
|
|
|
<div class="job-brief-item-left"> |
|
|
|
<div class="job-brief-item-left"> |
|
|
|
<ActionRunStatus :locale-status="locale.status[job.status]" :status="job.status"/> |
|
|
|
<ActionRunStatus :locale-status="locale.status[job.status]" :status="job.status"/> |
|
|
|
<span class="job-brief-name tw-mx-2 gt-ellipsis">{{ job.name }}</span> |
|
|
|
<span class="job-brief-name tw-mx-2 gt-ellipsis">{{ job.name }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span class="job-brief-item-right"> |
|
|
|
<span class="job-brief-item-right"> |
|
|
|
<SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun tw-mx-2 link-action" :data-url="`${run.link}/jobs/${index}/rerun`" v-if="job.canRerun && onHoverRerunIndex === job.id"/> |
|
|
|
<SvgIcon name="octicon-sync" role="button" :data-tooltip-content="locale.rerun" class="job-brief-rerun tw-mx-2 link-action" :data-url="`${run.link}/jobs/${index}/rerun`" v-if="job.canRerun"/> |
|
|
|
<span class="step-summary-duration">{{ job.duration }}</span> |
|
|
|
<span class="step-summary-duration">{{ job.duration }}</span> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
@ -721,11 +720,6 @@ export default defineComponent({ |
|
|
|
|
|
|
|
|
|
|
|
.job-brief-item .job-brief-rerun { |
|
|
|
.job-brief-item .job-brief-rerun { |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
transition: transform 0.2s; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.job-brief-item .job-brief-rerun:hover { |
|
|
|
|
|
|
|
transform: scale(130%); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.job-brief-item .job-brief-item-left { |
|
|
|
.job-brief-item .job-brief-item-left { |
|
|
|