Add search form submit #32 #45

Merged
jakob.scheid merged 20 commits from feature/search-form-submit into main 2026-05-14 11:29:19 +02:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit 8cdf16f144 - Show all commits
@@ -1,2 +1,6 @@
<script setup>
defineProps(['searchQuery'])
</script>
<template>
</template>
+6 -3
View File
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
*/
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHistory } from 'vue-router';
import SearchView from '../views/SearchView.vue';
import SearchResultsView from '@/features/search/views/SearchResultsView.vue';
@@ -28,9 +28,12 @@ const routes = [
{
path: '/search',
name: 'searchResults',
component: SearchResultsView
component: SearchResultsView,
props: route => ({
searchQuery: route.query.q
})
}
]
];
const router = createRouter({
history: createWebHistory(),