dont ignore error status

This commit is contained in:
Sebastian Frank 2019-05-22 10:55:35 +02:00
parent a1015c2db7
commit 686e493bf1
Signed by: apairon
GPG Key ID: 7270D06DDA7FE8C3
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ if (COCKPIT_ADMIN && !COCKPIT_API_REQUEST) {
$building = false;
foreach ($deploys as $idx => $deploy) {
$deploys[$idx]->building = false;
if (!in_array($deploy->status, ['success', 'failure'])) {
if (!in_array($deploy->status, ['success', 'failure', 'error'])) {
$building = true;
$deploys[$idx]->building = true;
}

View File

@ -146,8 +146,8 @@ pre h2.failure {
<a onclick="{ showdeployDetails }" class="extrafields-indicator uk-text-nowrap">
<span class="uk-badge uk-text-small" if="{!deploy.building && deploy.status !== 'failure' && deploy.status !== 'success' }"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
<span class="uk-badge uk-text-small uk-badge-success" if="{deploy.status === 'success'}"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
<span class="uk-badge uk-text-small uk-badge-danger" if="{deploy.status === 'failure'}"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
<span class="uk-badge uk-text-small uk-badge-warning" if="{deploy.building}"><i class="uk-icon-spinner uk-icon-spin"></i>{ App.i18n.get(deploy.status) }</span>
<span class="uk-badge uk-text-small uk-badge-danger" if="{deploy.status === 'failure' || deploy.status === 'error'}"><i class="uk-icon-eye uk-icon-justify"></i>{ App.i18n.get(deploy.status) }</span>
<span class="uk-badge uk-text-small uk-badge-warning" if="{deploy.building && deploy.status !== 'error'}"><i class="uk-icon-spinner uk-icon-spin"></i>{ App.i18n.get(deploy.status) }</span>
</a>
</td>
<td>{ deploy.number }</td>