Skip to content
Snippets Groups Projects
Commit 22006f26 authored by schneider210's avatar schneider210
Browse files

refactor: only render resultlist on match; not by default

parent 4f6752cc
Branches
Tags v1.10.3
1 merge request!56no-search-result
......@@ -9,7 +9,11 @@
{{ total }} {{ total === 1 ? 'Result' : 'Results' }}
</p>
<SearchResultList :query="query" :items="items" />
<SearchResultList
v-if="total > 0 && query"
:items="items"
:query="query"
/>
<div
class="text-center"
......@@ -37,11 +41,11 @@ export default {
},
data() {
return {
query: '',
items: [],
page: 1,
query: '',
size: 20,
total: 0,
page: 1,
}
},
watch:{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment