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>
(cherry picked from commit e2513fa)
  • Loading branch information
anbraten authored and 0x1def committed Jun 25, 2024
1 parent 8db2357 commit 7da11b6
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 7da11b6

Please sign in to comment.