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:
fenn-cs 2023-11-27 13:45:28 +01:00
parent 0a8ceb4c0c
commit e99d7ba6c4
3 changed files with 5 additions and 6 deletions

View file

@ -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) => {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long