generated from Seekra/repository-template
feat(place-search-bar-below-navbar): show search bar in the navbar search bar wrapper component only when the search results view is active
This commit is contained in:
@@ -16,10 +16,15 @@ limitations under the License.
|
||||
|
||||
<script setup>
|
||||
import Searchbar from '@/features/search/components/Searchbar.vue';
|
||||
|
||||
import { useRoute } from 'vue-router';
|
||||
|
||||
const route = useRoute();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Searchbar
|
||||
v-if="route.name === 'searchResults'"
|
||||
auto-submit
|
||||
/>
|
||||
</template>
|
||||
Reference in New Issue
Block a user