mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-19 09:46:03 +01:00
Port inbox author search functionality to TypeScript
This commit is contained in:
parent
2b06d6a6cc
commit
8797652746
1 changed files with 6 additions and 0 deletions
6
app/javascript/retrospring/features/inbox/author.ts
Normal file
6
app/javascript/retrospring/features/inbox/author.ts
Normal file
|
@ -0,0 +1,6 @@
|
|||
export function authorSearchHandler(event: Event): void {
|
||||
event.preventDefault();
|
||||
|
||||
const author = document.querySelector<HTMLInputElement>('#author')?.value;
|
||||
window.location.href = `/inbox/${author}`;
|
||||
}
|
Loading…
Reference in a new issue