Skip to content

Commit

Permalink
Allow filtering jobs by the IRC nick of the person who started the job
Browse files Browse the repository at this point in the history
Useful when you want to quickly check on your own jobs.
  • Loading branch information
pabs3 committed Oct 16, 2024
1 parent 203d40a commit 6294471
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dashboard/assets/scripts/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,9 @@ class JobsRenderer {
this.firstFilterMatch = null;
for (const job of this.jobs.sorted) {
const w = this.renderInfo[job.ident].logWindow;
if (!RegExp(query).test(job.url)) {
const r = RegExp(query);
const show = r.test(job.url) || (this.showNicks && r.test(job.started_by));
if (!show) {
w.classList.add("log-window-hidden");

unmatchedWindows.push(w);
Expand Down

0 comments on commit 6294471

Please sign in to comment.