Status: apply default style by default

The status 'aborted' occurs when a job is manually cancelled in Jenkins.
The switch to set the css class was not taking in account.

Instead of hardcoding all possibilities, default to 'label-default'
style whenever a status is not accounted for.

Change-Id: I580553aadb297830faec93526a73f931390ce450
This commit is contained in:
Antoine Musso 2016-02-04 23:35:23 +01:00
parent c737028474
commit 4c2053d670
1 changed files with 2 additions and 4 deletions

View File

@ -148,11 +148,9 @@
case 'skipped':
$status.addClass('label-info');
break;
case 'in progress':
case 'queued':
case 'lost':
// 'in progress' 'queued' 'lost' 'aborted' ...
default:
$status.addClass('label-default');
break;
}
$status.text(result);
return $status;