mirror of
https://github.com/nextcloud/server.git
synced 2026-04-24 07:39:23 -04:00
Always emit search event
For BOD, it's better to always emit the search event so apps (all of which we don't know) responding to this effect would receive notifications when the search happens within these apps. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
This commit is contained in:
parent
0a8ceb4c0c
commit
e99d7ba6c4
3 changed files with 5 additions and 6 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
4
dist/core-global-search.js
vendored
4
dist/core-global-search.js
vendored
File diff suppressed because one or more lines are too long
2
dist/core-global-search.js.map
vendored
2
dist/core-global-search.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue