diff --git a/services/web-ui/public/jobs.html b/services/web-ui/public/jobs.html
index aa1fbb0..4b61829 100644
--- a/services/web-ui/public/jobs.html
+++ b/services/web-ui/public/jobs.html
@@ -535,6 +535,7 @@ let activeCount = 0;
──────────────────────────────────────────────────────── */
async function api(path, opts = {}) {
const r = await fetch(API + path, {
+ credentials: 'include',
headers: { 'Content-Type': 'application/json' },
...opts
});
@@ -700,7 +701,7 @@ async function killJob(jobId, ev) {
if (!confirm('Remove this job from the queue? If a worker is still processing it, the run is abandoned.')) return;
try {
const r = await fetch('/api/v1/jobs/' + encodeURIComponent(jobId), { method: 'DELETE', credentials: 'include' });
- if (r.ok) { toast('Job removed', 'success'); fetchJobs(); }
+ if (r.ok) { toast('Job removed', 'success'); loadJobs(); }
else { const d = await r.json().catch(()=>({})); toast('Remove failed: ' + (d.error || r.statusText), 'error'); }
} catch (err) {
toast('Remove failed: ' + err.message, 'error');