aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2023-11-27 13:45:28 +0100
committerfenn-cs <fenn25.fn@gmail.com>2023-11-29 20:14:42 +0100
commite99d7ba6c4b30574a6afd86efbdbc0cc0f2f0fde (patch)
treea38aafca8d9a5802b2a61df30eccb73b4afe1baf /core
parent0a8ceb4c0c6ff315ac4fcef6a5de02236da89a31 (diff)
downloadnextcloud-server-e99d7ba6c4b30574a6afd86efbdbc0cc0f2f0fde.tar.gz
nextcloud-server-e99d7ba6c4b30574a6afd86efbdbc0cc0f2f0fde.zip
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>
Diffstat (limited to 'core')
-rw-r--r--core/src/views/GlobalSearchModal.vue5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/views/GlobalSearchModal.vue b/core/src/views/GlobalSearchModal.vue
index 5a5b18ee9c0..74f0750c55e 100644
--- a/core/src/views/GlobalSearchModal.vue
+++ b/core/src/views/GlobalSearchModal.vue
@@ -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) => {