diff --git a/src/components/chat_new/chat_new.js b/src/components/chat_new/chat_new.js index 1e26d24fb..92adf379e 100644 --- a/src/components/chat_new/chat_new.js +++ b/src/components/chat_new/chat_new.js @@ -5,6 +5,7 @@ import UserAvatar from 'src/components/user_avatar/user_avatar.vue' import { useOAuthStore } from 'src/stores/oauth.js' import { useUsersStore } from 'src/stores/users.js' +import { useSearchStore } from 'src/stores/search.js' import { chats } from 'src/api/chats.js' @@ -71,7 +72,7 @@ const chatNew = { this.loading = true this.userIds = [] this.$store - this.useSearchStore() + useSearchStore() .search({ q: query, resolve: true, type: 'accounts' }) .then((data) => { this.loading = false diff --git a/src/components/lists_user_search/lists_user_search.js b/src/components/lists_user_search/lists_user_search.js index 5ac6e679a..3c3f54bdf 100644 --- a/src/components/lists_user_search/lists_user_search.js +++ b/src/components/lists_user_search/lists_user_search.js @@ -4,6 +4,7 @@ import Checkbox from 'src/components/checkbox/checkbox.vue' import { library } from '@fortawesome/fontawesome-svg-core' import { faChevronLeft, faSearch } from '@fortawesome/free-solid-svg-icons' +import { useSearchStore } from 'src/stores/search.js' library.add(faSearch, faChevronLeft) @@ -32,7 +33,7 @@ const ListsUserSearch = { this.loading = true this.$emit('loading') this.userIds = [] - this.useSearchStore() + useSearchStore() .search({ q: query, resolve: true, diff --git a/src/components/quote/quote_form.js b/src/components/quote/quote_form.js index 61abf743b..700119be8 100644 --- a/src/components/quote/quote_form.js +++ b/src/components/quote/quote_form.js @@ -4,6 +4,7 @@ import Checkbox from 'src/components/checkbox/checkbox.vue' import Quote from './quote.vue' import { useInstanceStore } from 'src/stores/instance.js' +import { useSearchStore } from 'src/stores/search.js' export default { components: { @@ -93,7 +94,7 @@ export default { this.$emit('update:id', notice[3]) } else if (value) { this.loading = true - this.useSearchStore() + useSearchStore() .search({ q: value, resolve: true,