Skip to content

Commit 11410b6

Browse files
committed
Add link to the job ignores
Also stop onclick propagation from the parent stats-elements, to avoid clicking the link from changing the job filter. Design-by: @JustAnotherArchivist
1 parent cddb0f5 commit 11410b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dashboard/assets/scripts/dashboard.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,11 @@ class JobsRenderer {
370370
queueLength: h("span", { className: `inline-stat ${maybeAligned("job-in-queue")}` }, "? in q."),
371371
connections: h("span", { className: `inline-stat ${maybeAligned("job-connections")}` }, "?"),
372372
delay: h("span", { className: `inline-stat ${maybeAligned("job-delay")}` }, "? ms delay"),
373-
ignores: h("span", { className: "job-ignores" }, "?"),
373+
ignores: h("a", {
374+
className: "job-ignores",
375+
href: `//${ds.host}${ds.port}/ignores/${ident}?compact=true`,
376+
onclick: (ev) => { ev.stopPropagation(); },
377+
}, "?" ),
374378
jobInfo: null /* set later */,
375379
};
376380

0 commit comments

Comments
 (0)