Skip to content

Commit

Permalink
Correct favicon states (woodpecker-ci#3832)
Browse files Browse the repository at this point in the history
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
  • Loading branch information
2 people authored and 6543 committed Sep 5, 2024
1 parent 88611ab commit 55cc1de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/compositions/useFavicon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ watch(
);

function convertStatus(status: PipelineStatus): Status {
if (['blocked', 'declined', 'error', 'failure', 'killed'].includes(status)) {
if (['declined', 'error', 'failure', 'killed'].includes(status)) {
return 'error';
}

if (['started', 'running', 'pending'].includes(status)) {
if (['blocked', 'started', 'running', 'pending'].includes(status)) {
return 'pending';
}

if (['success', 'declined', 'error', 'failure', 'killed'].includes(status)) {
if (status === 'success') {
return 'success';
}

Expand Down

0 comments on commit 55cc1de

Please sign in to comment.