2
2
<div class =" action-view-container" >
3
3
<div class =" action-view-header" >
4
4
<div class =" action-info-summary" >
5
- <SvgIcon name =" octicon-check-circle-fill" size =" 20" class =" green" v-if =" run.status === 'success'" />
6
- <SvgIcon name =" octicon-clock" size =" 20" class =" ui text yellow" v-else-if =" run.status === 'waiting'" />
7
- <SvgIcon name =" octicon-meter" size =" 20" class =" ui text yellow" class-name =" job-status-rotate" v-else-if =" run.status === 'running'" />
8
- <SvgIcon name =" octicon-x-circle-fill" size =" 20" class =" red" v-else />
5
+ <ActionRunStatus :status =" run.status" :size =" 20" />
9
6
<div class =" action-title" >
10
7
{{ run.title }}
11
8
</div >
23
20
<div class =" job-brief-list" >
24
21
<div class =" job-brief-item" v-for =" (job, index) in run.jobs" :key =" job.id" >
25
22
<a class =" job-brief-link" :href =" run.link+'/jobs/'+index" >
26
- <SvgIcon name =" octicon-check-circle-fill" class =" green" v-if =" job.status === 'success'" />
27
- <SvgIcon name =" octicon-skip" class =" ui text grey" v-else-if =" job.status === 'skipped'" />
28
- <SvgIcon name =" octicon-clock" class =" ui text yellow" v-else-if =" job.status === 'waiting'" />
29
- <SvgIcon name =" octicon-blocked" class =" ui text yellow" v-else-if =" job.status === 'blocked'" />
30
- <SvgIcon name =" octicon-meter" class =" ui text yellow" class-name =" job-status-rotate" v-else-if =" job.status === 'running'" />
31
- <SvgIcon name =" octicon-x-circle-fill" class =" red" v-else />
23
+ <ActionRunStatus :status =" job.status" />
32
24
<span class =" ui text" >{{ job.name }}</span >
33
25
</a >
34
26
<button class =" job-brief-rerun" @click =" rerunJob(index)" v-if =" job.canRerun" >
54
46
<SvgIcon name =" octicon-chevron-down" class =" gt-mr-3" v-show =" currentJobStepsStates[i].expanded" />
55
47
<SvgIcon name =" octicon-chevron-right" class =" gt-mr-3" v-show =" !currentJobStepsStates[i].expanded" />
56
48
57
- <SvgIcon name =" octicon-check-circle-fill" class =" green gt-mr-3" v-if =" jobStep.status === 'success'" />
58
- <SvgIcon name =" octicon-skip" class =" ui text grey gt-mr-3" v-else-if =" jobStep.status === 'skipped'" />
59
- <SvgIcon name =" octicon-clock" class =" ui text yellow gt-mr-3" v-else-if =" jobStep.status === 'waiting'" />
60
- <SvgIcon name =" octicon-blocked" class =" ui text yellow gt-mr-3" v-else-if =" jobStep.status === 'blocked'" />
61
- <SvgIcon name =" octicon-meter" class =" ui text yellow gt-mr-3" class-name =" job-status-rotate" v-else-if =" jobStep.status === 'running'" />
62
- <SvgIcon name =" octicon-x-circle-fill" class =" red gt-mr-3 " v-else />
49
+ <ActionRunStatus :status =" jobStep.status" class =" gt-mr-3" />
63
50
64
51
<span class =" step-summary-msg" >{{ jobStep.summary }}</span >
65
52
<span class =" step-summary-dur" >{{ jobStep.duration }}</span >
76
63
77
64
<script >
78
65
import {SvgIcon } from ' ../svg.js' ;
66
+ import ActionRunStatus from ' ./ActionRunStatus.vue' ;
79
67
import {createApp } from ' vue' ;
80
68
import AnsiToHTML from ' ansi-to-html' ;
81
69
@@ -85,6 +73,7 @@ const sfc = {
85
73
name: ' RepoActionView' ,
86
74
components: {
87
75
SvgIcon,
76
+ ActionRunStatus,
88
77
},
89
78
props: {
90
79
runIndex: String ,
0 commit comments