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>
|
<script setup>
|
||||||
import Searchbar from '@/features/search/components/Searchbar.vue';
|
import Searchbar from '@/features/search/components/Searchbar.vue';
|
||||||
|
|
||||||
|
import { useRoute } from 'vue-router';
|
||||||
|
|
||||||
|
const route = useRoute();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Searchbar
|
<Searchbar
|
||||||
|
v-if="route.name === 'searchResults'"
|
||||||
auto-submit
|
auto-submit
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
Reference in New Issue
Block a user