diff options
author | Raimund Schlüßler <raimund.schluessler@mailbox.org> | 2020-08-31 21:38:07 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-09-02 06:04:10 +0000 |
commit | 7abfaadc54d8c5f69f0c39352870c9215bd31d85 (patch) | |
tree | 2b33bce9bd64fb92875c1524a8e7a65de5c904f6 /core/src | |
parent | 6bda2c26c765e7d563915591d20836005743d265 (diff) | |
download | nextcloud-server-7abfaadc54d8c5f69f0c39352870c9215bd31d85.tar.gz nextcloud-server-7abfaadc54d8c5f69f0c39352870c9215bd31d85.zip |
Emit unified search query
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/views/UnifiedSearch.vue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue index 56cb12d3dc7..4569d1c46b6 100644 --- a/core/src/views/UnifiedSearch.vue +++ b/core/src/views/UnifiedSearch.vue @@ -101,6 +101,7 @@ import { minSearchLength, getTypes, search, defaultLimit } from '../services/Uni import EmptyContent from '@nextcloud/vue/dist/Components/EmptyContent' import Magnify from 'vue-material-design-icons/Magnify' import debounce from 'debounce' +import { emit } from '@nextcloud/event-bus' import HeaderMenu from '../components/HeaderMenu' import SearchResult from '../components/UnifiedSearch/SearchResult' @@ -243,6 +244,7 @@ export default { onClose() { this.resetState() this.query = '' + emit('nextcloud:unified-search:close') }, resetState() { @@ -281,6 +283,9 @@ export default { * Start searching on input */ async onInput() { + // emit the search query + emit('nextcloud:unified-search:search', { query: this.query }) + // Do not search if not long enough if (this.query.trim() === '' || this.isShortQuery) { return |