Skip to content

Commit

Permalink
Merge pull request #41771 from nextcloud/always-emit-search-event
Browse files Browse the repository at this point in the history
Always emit search event
  • Loading branch information
AndyScherzinger authored Nov 29, 2023
2 parents a5a49ff + e99d7ba commit 82f0619
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions core/src/views/GlobalSearchModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,8 @@ export default {
this.searching = false
return
}
if (this.supportFiltering()) {
emit('nextcloud:unified-search.search', { query })
}
// Event should probably be refactored at some point to used nextcloud:global-search.search
emit('nextcloud:unified-search.search', { query })
const newResults = []
const providersToSearch = this.filteredProviders.length > 0 ? this.filteredProviders : this.providers
const searchProvider = (provider, filters) => {
Expand Down
4 changes: 2 additions & 2 deletions dist/core-global-search.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

0 comments on commit 82f0619

Please sign in to comment.