|
|
@ -14,7 +14,7 @@
|
|
|
|
.search-results-none(v-else-if='!searchIsLoading && (!results || results.length < 1)')
|
|
|
|
.search-results-none(v-else-if='!searchIsLoading && (!results || results.length < 1)')
|
|
|
|
img(src='/_assets/svg/icon-no-results.svg', alt='No Results')
|
|
|
|
img(src='/_assets/svg/icon-no-results.svg', alt='No Results')
|
|
|
|
.subheading {{$t('common:header.searchNoResult')}}
|
|
|
|
.subheading {{$t('common:header.searchNoResult')}}
|
|
|
|
template(v-if='results && results.length > 0')
|
|
|
|
template(v-if='search && search.length >= 2 && results && results.length > 0')
|
|
|
|
v-subheader.white--text {{$t('common:header.searchResultsCount', { total: response.totalHits })}}
|
|
|
|
v-subheader.white--text {{$t('common:header.searchResultsCount', { total: response.totalHits })}}
|
|
|
|
v-list.search-results-items.radius-7.py-0(two-line, dense)
|
|
|
|
v-list.search-results-items.radius-7.py-0(two-line, dense)
|
|
|
|
template(v-for='(item, idx) of results')
|
|
|
|
template(v-for='(item, idx) of results')
|
|
|
@ -101,8 +101,6 @@ export default {
|
|
|
|
search(newValue, oldValue) {
|
|
|
|
search(newValue, oldValue) {
|
|
|
|
this.cursor = 0
|
|
|
|
this.cursor = 0
|
|
|
|
if (!newValue || (newValue && newValue.length < 2)) {
|
|
|
|
if (!newValue || (newValue && newValue.length < 2)) {
|
|
|
|
this.response.results = []
|
|
|
|
|
|
|
|
this.response.suggestions = []
|
|
|
|
|
|
|
|
this.searchIsLoading = false
|
|
|
|
this.searchIsLoading = false
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.searchIsLoading = true
|
|
|
|
this.searchIsLoading = true
|
|
|
|