aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/views
diff options
context:
space:
mode:
authorfenn-cs <fenn25.fn@gmail.com>2024-02-19 11:23:28 +0100
committerfenn-cs <fenn25.fn@gmail.com>2024-03-06 02:05:51 +0100
commit647f4bc1c8c92fd41c8e98555da0cd0aee817a54 (patch)
treeb724a57431fd51316a6ac476be4cf0bdd0f633a8 /core/src/views
parentd35a49caba0ec1b8ff2857b77b9471ea53076838 (diff)
downloadnextcloud-server-647f4bc1c8c92fd41c8e98555da0cd0aee817a54.tar.gz
nextcloud-server-647f4bc1c8c92fd41c8e98555da0cd0aee817a54.zip
refactor: migrate from vuex to pinia
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'core/src/views')
-rw-r--r--core/src/views/UnifiedSearchModal.vue8
1 files changed, 3 insertions, 5 deletions
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) {