diff --git a/src/routes/app/add-ons/+page.svelte b/src/routes/app/add-ons/+page.svelte index 4b3bd4cb9..c67af52dc 100644 --- a/src/routes/app/add-ons/+page.svelte +++ b/src/routes/app/add-ons/+page.svelte @@ -31,6 +31,15 @@ goto(url); } + function search(event: SubmitEvent) { + const { url } = data; + const formData = new FormData(event.currentTarget as HTMLFormElement); + const query = formData.get("query") ?? ""; + if (!query) return; + url.searchParams.set("query", query); + goto(url); + } + $: active = Array.from((data.url as URL).searchParams.entries()).find( ([_, value]) => value === "true", @@ -45,7 +54,7 @@ - + {#if active === "active"}