Show changed status when the status is both ok and changed

This commit is contained in:
Marliana Lara 2019-09-10 17:09:25 -04:00
parent 2527a78874
commit e53c979344
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE

View File

@ -66,15 +66,15 @@ function HostEventService (
obj.class = 'HostEvent-status--failed';
obj.status = 'failed';
}
// catch the changed case before ok, because both can be true
if (event.event === 'runner_on_ok' || event.event === 'runner_on_async_ok') {
obj.class = 'HostEvent-status--ok';
obj.status = 'ok';
}
// if both 'changed' and 'ok' are true, show 'changed' status
if (event.changed) {
obj.class = 'HostEvent-status--changed';
obj.status = 'changed';
}
if (event.event === 'runner_on_ok' || event.event === 'runner_on_async_ok') {
obj.class = 'HostEvent-status--ok';
obj.status = 'ok';
}
if (event.event === 'runner_on_skipped') {
obj.class = 'HostEvent-status--skipped';
obj.status = 'skipped';