mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-24 19:01:02 +00:00
Correct favicon states (#3832)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
parent
e9e512bcdd
commit
e2513fa4c8
1 changed files with 3 additions and 3 deletions
|
@ -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';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue