From 647f4bc1c8c92fd41c8e98555da0cd0aee817a54 Mon Sep 17 00:00:00 2001 From: fenn-cs Date: Mon, 19 Feb 2024 11:23:28 +0100 Subject: refactor: migrate from vuex to pinia Signed-off-by: fenn-cs --- core/src/views/UnifiedSearchModal.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'core/src/views') diff --git a/core/src/views/UnifiedSearchModal.vue b/core/src/views/UnifiedSearchModal.vue index 881e49d6405..b33cebed8e2 100644 --- a/core/src/views/UnifiedSearchModal.vue +++ b/core/src/views/UnifiedSearchModal.vue @@ -154,8 +154,8 @@ import SearchResult from '../components/UnifiedSearch/SearchResult.vue' import debounce from 'debounce' import { emit, subscribe } from '@nextcloud/event-bus' import { useBrowserLocation } from '@vueuse/core' -import { mapState } from 'vuex' import { getProviders, search as unifiedSearch, getContacts } from '../services/UnifiedSearchService.js' +import { useSearchStore } from '../store/unified-search-external-filters.js' export default { name: 'UnifiedSearchModal', @@ -190,8 +190,10 @@ export default { * Reactive version of window.location */ const currentLocation = useBrowserLocation() + const searchStore = useSearchStore() return { currentLocation, + externalFilters: searchStore.externalFilters, } }, data() { @@ -220,9 +222,6 @@ export default { }, computed: { - ...mapState({ - externalFilters: state => state.search.externalFilters, - }), userContacts() { return this.contacts }, @@ -577,7 +576,6 @@ export default { break } } - console.debug('Search scope set to conversation', addFilterEvent) this.debouncedFind(this.searchQuery) }, groupProvidersByApp(filters) { -- cgit v1.2.3