Correct favicon states (#3832)

Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
Anbraten 2024-06-25 08:09:29 +02:00 committed by GitHub
parent e9e512bcdd
commit e2513fa4c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,15 +31,15 @@ watch(
); );
function convertStatus(status: PipelineStatus): Status { function convertStatus(status: PipelineStatus): Status {
if (['blocked', 'declined', 'error', 'failure', 'killed'].includes(status)) { if (['declined', 'error', 'failure', 'killed'].includes(status)) {
return 'error'; return 'error';
} }
if (['started', 'running', 'pending'].includes(status)) { if (['blocked', 'started', 'running', 'pending'].includes(status)) {
return 'pending'; return 'pending';
} }
if (['success', 'declined', 'error', 'failure', 'killed'].includes(status)) { if (status === 'success') {
return 'success'; return 'success';
} }