filter by runner full names + "#<ID>" #160

Merged
philipp merged 3 commits from feature/159-cardsoverview-filter-for-runner-full-names-and-id into dev 2023-03-15 11:20:05 +00:00
Showing only changes of commit b869b5fd2a - Show all commits

View File

@ -12,10 +12,11 @@
if (v === "") { if (v === "") {
return c; return c;
} }
if (c.runner) { if (!c.runner) {
return "";
}
if (v.startsWith("#")) { if (v.startsWith("#")) {
const id = parseInt(v.replace("#", "")); const id = parseInt(v.replace("#", ""));
// console.log({ id, r: c.runner.id });
if (c.runner.id === id) { if (c.runner.id === id) {
console.log(c); console.log(c);
return c; return c;
@ -27,12 +28,9 @@
} }
runnerName = runnerName.toLowerCase(); runnerName = runnerName.toLowerCase();
if (runnerName.includes(v)) { if (runnerName.includes(v)) {
console.log({ filterValue, runnerName });
// console.log(c);
return c; return c;
} }
} }
}
return ""; return "";
}); });
}, 150); }, 150);