Render chkbox turns off once rendering job starts
This commit is contained in:
parent
55b2da4ed9
commit
2d38a1673b
2 changed files with 11 additions and 1 deletions
|
|
@ -2256,6 +2256,9 @@ document.addEventListener('DOMContentLoaded', function(){
|
|||
if(!r.ok) throw new Error('status failed');
|
||||
const data=await r.json();
|
||||
const jobs=(data.jobs||[]).filter(function(job){ return job && (job.name || job.id); });
|
||||
if (Array.isArray(data.switches) && typeof applySwitchPayload === 'function') {
|
||||
data.switches.forEach(function(payload){ applySwitchPayload(payload); });
|
||||
}
|
||||
const runningIds=new Set(jobs.map(function(job){ return String(job.id || ''); }).filter(function(v){ return v !== ''; }));
|
||||
const runningJobs=new Set(jobs.map(function(job){ return String(job.name || ''); }).filter(function(v){ return v !== ''; }));
|
||||
syncEditButtons(runningIds, runningJobs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue