This commit is contained in:
Henry Jameson 2026-08-28 23:05:23 +03:00
commit 8f9635f5b3
3 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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,

View file

@ -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,