1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

wallboard: correctly tag running build for css

also on page refresh, not just via SSE.
This commit is contained in:
Oliver Giles 2022-09-03 19:54:08 +12:00
parent 01183a3c25
commit e9fc547a72

View File

@ -482,6 +482,7 @@ const All = templateId => {
state.jobsRunning = msg.running; state.jobsRunning = msg.running;
// mix running and completed jobs // mix running and completed jobs
msg.running.forEach(job => { msg.running.forEach(job => {
job.result = 'running';
const idx = state.jobs.findIndex(j => j.name === job.name); const idx = state.jobs.findIndex(j => j.name === job.name);
if (idx > -1) if (idx > -1)
state.jobs[idx] = job; state.jobs[idx] = job;