Skip to content

Commit db8abb2

Browse files
committed
Added skipped icon, use correct status
1 parent 0948a3f commit db8abb2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Widgets/DroneCi.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
>
88
<div class="status">
99
<p :class="build.build.status">{{ build.build.status | formatStatus }}</p>
10-
<span v-if="build.status == 'running'">
10+
<span v-if="build.build.status == 'running'">
1111
{{ build.build.started*1000 | formatTimeAgo }} ago
1212
</span>
13-
<span v-else-if="build.status != 'pending' ">
13+
<span v-else-if="build.build.status != 'pending' ">
1414
{{ formatBuildDuration(build) }}
1515
</span>
1616
<span v-else>
@@ -72,7 +72,7 @@ export default {
7272
formatStatus(status) {
7373
let symbol = '';
7474
if (status === 'success') symbol = '';
75-
if (status === 'failure' || status === 'error') symbol = '';
75+
if (status === 'failure' || status === 'error' || status === 'killed') symbol = '';
7676
if (status === 'running') symbol = '';
7777
if (status === 'skipped') symbol = '';
7878
return `${symbol}`;

0 commit comments

Comments
 (0)