diff --git a/frontend/src/components/SearchBars.vue b/frontend/src/components/SearchBars.vue index 4d837e14..549f662b 100644 --- a/frontend/src/components/SearchBars.vue +++ b/frontend/src/components/SearchBars.vue @@ -1,20 +1,9 @@ @@ -38,6 +27,22 @@ const searchForm = ref({ forums: '', users: '', }) + +const searchTorrents = () => { + router.push({ + path: '/torrents', + query: { title_group_name: searchForm.value.torrents }, + }) + searchForm.value.torrents = '' +} + +const searchForums = () => { + router.push({ + path: '/forum/search', + query: { thread_name: searchForm.value.forums }, + }) + searchForm.value.forums = '' +}