From df7a1906e80bc833b92d019f6e7e1626e1b8f26d Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Mon, 27 Nov 2023 13:45:28 +0100 Subject: 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 --- core/src/views/GlobalSearchModal.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'core/src') 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) => { -- cgit v1.2.3