generated from Seekra/repository-template
Show search bar below the navbar on the search results view on small screens #99
@@ -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