17
17
<div class =" job-brief-list" >
18
18
<div class =" job-brief-item" v-for =" (job, index) in run.jobs" :key =" job.id" >
19
19
<a class =" job-brief-link" :href =" run.link+'/jobs/'+index" >
20
- <SvgIcon name =" octicon-check-circle-fill" class =" green" v-if =" job.status === 'success'" />
21
- <SvgIcon name =" octicon-skip" class =" ui text grey" v-else-if =" job.status === 'skipped'" />
22
- <SvgIcon name =" octicon-clock" class =" ui text yellow" v-else-if =" job.status === 'waiting'" />
23
- <SvgIcon name =" octicon-blocked" class =" ui text yellow" v-else-if =" job.status === 'blocked'" />
24
- <SvgIcon name =" octicon-meter" class =" ui text yellow" class-name =" job-status-rotate" v-else-if =" job.status === 'running'" />
25
- <SvgIcon name =" octicon-x-circle-fill" class =" red" v-else />
20
+ <RunStatus :status =" job.status" />
26
21
<span class =" ui text" >{{ job.name }}</span >
27
22
</a >
28
23
<button class =" job-brief-rerun" @click =" rerunJob(index)" v-if =" job.canRerun" >
48
43
<SvgIcon name =" octicon-chevron-down" class =" gt-mr-3" v-show =" currentJobStepsStates[i].expanded" />
49
44
<SvgIcon name =" octicon-chevron-right" class =" gt-mr-3" v-show =" !currentJobStepsStates[i].expanded" />
50
45
51
- <SvgIcon name =" octicon-check-circle-fill" class =" green gt-mr-3" v-if =" jobStep.status === 'success'" />
52
- <SvgIcon name =" octicon-skip" class =" ui text grey gt-mr-3" v-else-if =" jobStep.status === 'skipped'" />
53
- <SvgIcon name =" octicon-clock" class =" ui text yellow gt-mr-3" v-else-if =" jobStep.status === 'waiting'" />
54
- <SvgIcon name =" octicon-blocked" class =" ui text yellow gt-mr-3" v-else-if =" jobStep.status === 'blocked'" />
55
- <SvgIcon name =" octicon-meter" class =" ui text yellow gt-mr-3" class-name =" job-status-rotate" v-else-if =" jobStep.status === 'running'" />
56
- <SvgIcon name =" octicon-x-circle-fill" class =" red gt-mr-3 " v-else />
46
+ <RunStatus :status =" jobStep.status" class =" gt-mr-3" />
57
47
58
48
<span class =" step-summary-msg" >{{ jobStep.summary }}</span >
59
49
<span class =" step-summary-dur" >{{ jobStep.duration }}</span >
70
60
71
61
<script >
72
62
import {SvgIcon } from ' ../svg.js' ;
63
+ import {RunStatus } from ' ../runstatus.js' ;
73
64
import {createApp } from ' vue' ;
74
65
import AnsiToHTML from ' ansi-to-html' ;
75
66
@@ -79,6 +70,7 @@ const sfc = {
79
70
name: ' RepoActionView' ,
80
71
components: {
81
72
SvgIcon,
73
+ RunStatus,
82
74
},
83
75
props: {
84
76
runIndex: String ,
0 commit comments