Browse Source

fix: search hint display no results found error when empty (#1255)

pull/1271/head 2.0.12
NGPixel 5 years ago
parent
commit
9e35126fc5
1 changed files with 1 additions and 2 deletions
  1. 3
      client/components/common/search-results.vue

3
client/components/common/search-results.vue

@ -1,7 +1,7 @@
<template lang="pug">
.search-results(v-if='searchIsFocused || (search && search.length > 1)')
.search-results-container
.search-results-help(v-if='search && search.length < 2')
.search-results-help(v-if='!search || (search && search.length < 2)')
img(src='/svg/icon-search-alt.svg')
.mt-4 {{$t('common:header.searchHint')}}
.search-results-loader(v-else-if='searchIsLoading && (!results || results.length < 1)')
@ -107,7 +107,6 @@ export default {
},
mounted() {
this.$root.$on('searchMove', (dir) => {
console.info()
this.cursor += ((dir === 'up') ? -1 : 1)
if (this.cursor < -1) {
this.cursor = -1

Loading…
Cancel
Save