fix loading issue
This commit is contained in:
@@ -186,7 +186,7 @@
|
||||
actions.style.display = 'flex';
|
||||
|
||||
const btnAbort = document.getElementById('btn-abort');
|
||||
if (['passed', 'failed', 'aborted'].includes(job.status)) {
|
||||
if (['passed', 'failed', 'aborted', 'error'].includes(job.status)) {
|
||||
btnAbort.style.display = 'none';
|
||||
if (isPolling) clearInterval(pollingInterval);
|
||||
} else {
|
||||
@@ -244,8 +244,8 @@
|
||||
let statusHtml = '⌛ Waiting';
|
||||
|
||||
if (result) {
|
||||
const icon = result[0] === 'PASS' ? '✅' : (result[0] === 'FAIL' ? '❌' : '⚫');
|
||||
const color = result[0] === 'PASS' ? 'var(--success)' : (result[0] === 'FAIL' ? 'var(--danger)' : 'var(--gray)');
|
||||
const icon = result[0] === 'PASS' ? '✅' : (result[0] === 'FAIL' ? '❌' : (result[0] === 'ERROR' ? '⚠️' : '⚫'));
|
||||
const color = result[0] === 'PASS' ? 'var(--success)' : (result[0] === 'FAIL' ? 'var(--danger)' : (result[0] === 'ERROR' ? 'var(--warning)' : 'var(--gray)'));
|
||||
statusHtml = `<a href="${result[1]}" target="_blank" style="text-decoration: none; color: ${color}; font-weight: 600;">${icon} ${result[0]}</a>`;
|
||||
} else if (job.status === 'in_progress') {
|
||||
statusHtml = '🔄 Running';
|
||||
@@ -277,7 +277,7 @@
|
||||
if (logElement) logElement.scrollTop = logElement.scrollHeight;
|
||||
}
|
||||
|
||||
if (!['passed', 'failed', 'aborted'].includes(job.status)) {
|
||||
if (!['passed', 'failed', 'aborted', 'error'].includes(job.status)) {
|
||||
fetch(`/jobs/${jobId}/status`)
|
||||
.then(r => r.json())
|
||||
.then(data => {
|
||||
|
||||
Reference in New Issue
Block a user