Move the search bar in the search results view into the navigation bar #82

Merged
jakob.scheid merged 10 commits from chore/searchbar into main 2026-05-29 18:30:06 +02:00
Showing only changes of commit d461da90f2 - Show all commits
+1 -1
View File
@@ -23,7 +23,7 @@ import logo from '@/assets/images/logo.svg';
import Searchbar from '@/features/search/components/Searchbar.vue';
jakob.scheid marked this conversation as resolved Outdated
Outdated
Review

Usually, pascal case (PascalCase) is used when naming Vue.js components.

Usually, pascal case (PascalCase) is used when naming Vue.js components.
const route = useRoute();
const searchQueryModel = ref(route.name === 'searchResults' ? route.query.q || '' : '');
const searchQueryModel = defineModel();
watch(() => route.name, name => {
searchQueryModel.value = name === 'searchResults' ? route.query.q || '' : '';