Skip to content

Commit

Permalink
feat: text filter active
Browse files Browse the repository at this point in the history
  • Loading branch information
ctot-nondef committed Jun 24, 2024
1 parent 17c381b commit eefb88c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ function onUpdatePage(newPage: number) {
const offset = ref(0);
const limit = 20;
const searchstring = ref("");
const { data } = useGetSearchResults(
computed(() => {
return {
text_filter: searchstring.value,
limit,
offset: offset.value,
};
Expand All @@ -41,7 +43,14 @@ const { data } = useGetSearchResults(
<main class="h-full bg-frisch-marine pr-20">
<h1 class="sr-only">{{ t("SearchPage.title") }}</h1>
<div class="grid h-full grid-cols-[1fr_3fr]">
<SearchForm search="" />
<SearchForm
search=""
@submit="
(values) => {
searchstring = values.search;
}
"
/>
<div
v-if="data != null"
class="grid w-full grid-rows-[auto_1fr_auto] items-center bg-white p-8"
Expand Down

0 comments on commit eefb88c

Please sign in to comment.