summaryrefslogtreecommitdiffstats
path: root/core/src
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-30 11:37:25 +0100
commitdf7a1906e80bc833b92d019f6e7e1626e1b8f26d (patch)
treebef5590b3edaa3b72f7de9ff605c81ff981c0830 /core/src
parent0561b11a4eaf3687956abd9cb73a305c198211ed (diff)
downloadnextcloud-server-df7a1906e80bc833b92d019f6e7e1626e1b8f26d.tar.gz
nextcloud-server-df7a1906e80bc833b92d019f6e7e1626e1b8f26d.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/src')
-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 9058776780f..b8a302a15bf 100644
--- a/core/src/views/GlobalSearchModal.vue
+++ b/core/src/views/GlobalSearchModal.vue
@@ -248,9 +248,8 @@ export default {
this.results = []
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) => {