File tree Expand file tree Collapse file tree 3 files changed +30
-58
lines changed Expand file tree Collapse file tree 3 files changed +30
-58
lines changed Original file line number Diff line number Diff line change
1
+ <template >
2
+ <SvgIcon name =" octicon-check-circle-fill" class =" green" :size =" size" v-if =" status === 'success'" />
3
+ <SvgIcon name =" octicon-skip" class =" ui text grey" :size =" size" v-else-if =" status === 'skipped'" />
4
+ <SvgIcon name =" octicon-clock" class =" ui text yellow" :size =" size" v-else-if =" status === 'waiting'" />
5
+ <SvgIcon name =" octicon-blocked" class =" ui text yellow" :size =" size" v-else-if =" status === 'blocked'" />
6
+ <SvgIcon name =" octicon-meter" class =" ui text yellow" :size =" size" class-name =" job-status-rotate" v-else-if =" job.status === 'running'" />
7
+ <SvgIcon name =" octicon-x-circle-fill" class =" red" :size =" size" v-else />
8
+ </template >
9
+
10
+ <script >
11
+ import {SvgIcon } from ' ../svg.js' ;
12
+
13
+ export default {
14
+ components: {SvgIcon},
15
+ props: {
16
+ status: {
17
+ type: String ,
18
+ required: true
19
+ },
20
+ size: {
21
+ type: Number ,
22
+ default: 16
23
+ }
24
+ },
25
+ };
26
+ </script >
Original file line number Diff line number Diff line change 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
- <RunStatus :status =" job.status" />
20
+ <ActionsRunStatus :status =" job.status" size = " 20 " />
21
21
<span class =" ui text" >{{ job.name }}</span >
22
22
</a >
23
23
<button class =" job-brief-rerun" @click =" rerunJob(index)" v-if =" job.canRerun" >
43
43
<SvgIcon name =" octicon-chevron-down" class =" gt-mr-3" v-show =" currentJobStepsStates[i].expanded" />
44
44
<SvgIcon name =" octicon-chevron-right" class =" gt-mr-3" v-show =" !currentJobStepsStates[i].expanded" />
45
45
46
- <RunStatus :status =" jobStep.status" class =" gt-mr-3" />
46
+ <ActionsRunStatus :status =" jobStep.status" class =" gt-mr-3" />
47
47
48
48
<span class =" step-summary-msg" >{{ jobStep.summary }}</span >
49
49
<span class =" step-summary-dur" >{{ jobStep.duration }}</span >
60
60
61
61
<script >
62
62
import {SvgIcon } from ' ../svg.js' ;
63
- import { RunStatus } from ' ../runstatus.js ' ;
63
+ import ActionsRunStatus from ' ./ActionsRunStatus.vue ' ;
64
64
import {createApp } from ' vue' ;
65
65
import AnsiToHTML from ' ansi-to-html' ;
66
66
@@ -70,7 +70,7 @@ const sfc = {
70
70
name: ' RepoActionView' ,
71
71
components: {
72
72
SvgIcon,
73
- RunStatus ,
73
+ ActionsRunStatus ,
74
74
},
75
75
props: {
76
76
runIndex: String ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments