Skip to content

Commit 6294471

Browse files
committed
Allow filtering jobs by the IRC nick of the person who started the job
Useful when you want to quickly check on your own jobs.
1 parent 203d40a commit 6294471

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dashboard/assets/scripts/dashboard.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,9 @@ class JobsRenderer {
628628
this.firstFilterMatch = null;
629629
for (const job of this.jobs.sorted) {
630630
const w = this.renderInfo[job.ident].logWindow;
631-
if (!RegExp(query).test(job.url)) {
631+
const r = RegExp(query);
632+
const show = r.test(job.url) || (this.showNicks && r.test(job.started_by));
633+
if (!show) {
632634
w.classList.add("log-window-hidden");
633635

634636
unmatchedWindows.push(w);

0 commit comments

Comments
 (0)