Skip to content

Commit

Permalink
Added skipped icon, use correct status
Browse files Browse the repository at this point in the history
  • Loading branch information
m42e committed Jan 8, 2023
1 parent 0948a3f commit db8abb2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Widgets/DroneCi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
>
<div class="status">
<p :class="build.build.status">{{ build.build.status | formatStatus }}</p>
<span v-if="build.status == 'running'">
<span v-if="build.build.status == 'running'">
{{ build.build.started*1000 | formatTimeAgo }} ago
</span>
<span v-else-if="build.status != 'pending' ">
<span v-else-if="build.build.status != 'pending' ">
{{ formatBuildDuration(build) }}
</span>
<span v-else>
Expand Down Expand Up @@ -72,7 +72,7 @@ export default {
formatStatus(status) {
let symbol = '';
if (status === 'success') symbol = '';
if (status === 'failure' || status === 'error') symbol = '';
if (status === 'failure' || status === 'error' || status === 'killed') symbol = '';
if (status === 'running') symbol = '';
if (status === 'skipped') symbol = '';
return `${symbol}`;
Expand Down

0 comments on commit db8abb2

Please sign in to comment.