Skip to content

Commit

Permalink
Merge pull request #28682 from nextcloud/NMC-464
Browse files Browse the repository at this point in the history
NMC-464 Highlight the search term on no results
  • Loading branch information
szaimen committed Sep 1, 2021
2 parents ab592c9 + d2aed25 commit 1a4e4b8
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 76 deletions.
22 changes: 11 additions & 11 deletions core/js/dist/install.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions core/js/dist/login.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/login.js.map

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions core/js/dist/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/recommendedapps.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/recommendedapps.js.map

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions core/js/dist/unified-search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core/js/dist/unified-search.js.map

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion core/src/views/UnifiedSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
<SearchResultPlaceholders v-if="isLoading" />

<EmptyContent v-else-if="isValidQuery" icon="icon-search">
{{ t('core', 'No results for {query}', {query}) }}
<Highlight :text="t('core', 'No results for {query}', { query })" :search="query" />
</EmptyContent>

<EmptyContent v-else-if="!isLoading || isShortQuery" icon="icon-search">
Expand Down Expand Up @@ -126,10 +126,12 @@
import { emit } from '@nextcloud/event-bus'
import { minSearchLength, getTypes, search, defaultLimit, regexFilterIn, regexFilterNot } from '../services/UnifiedSearchService'
import { showError } from '@nextcloud/dialogs'
import ActionButton from '@nextcloud/vue/dist/Components/ActionButton'
import Actions from '@nextcloud/vue/dist/Components/Actions'
import debounce from 'debounce'
import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent'
import Highlight from '@nextcloud/vue/dist/Components/Highlight'
import Magnify from 'vue-material-design-icons/Magnify'
import HeaderMenu from '../components/HeaderMenu'
Expand All @@ -148,6 +150,7 @@ export default {
Actions,
EmptyContent,
HeaderMenu,
Highlight,
Magnify,
SearchResult,
SearchResultPlaceholders,
Expand Down

0 comments on commit 1a4e4b8

Please sign in to comment.