wtf
This commit is contained in:
parent
3774a0f982
commit
8f9635f5b3
3 changed files with 6 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import UserAvatar from 'src/components/user_avatar/user_avatar.vue'
|
||||||
|
|
||||||
import { useOAuthStore } from 'src/stores/oauth.js'
|
import { useOAuthStore } from 'src/stores/oauth.js'
|
||||||
import { useUsersStore } from 'src/stores/users.js'
|
import { useUsersStore } from 'src/stores/users.js'
|
||||||
|
import { useSearchStore } from 'src/stores/search.js'
|
||||||
|
|
||||||
import { chats } from 'src/api/chats.js'
|
import { chats } from 'src/api/chats.js'
|
||||||
|
|
||||||
|
|
@ -71,7 +72,7 @@ const chatNew = {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.userIds = []
|
this.userIds = []
|
||||||
this.$store
|
this.$store
|
||||||
this.useSearchStore()
|
useSearchStore()
|
||||||
.search({ q: query, resolve: true, type: 'accounts' })
|
.search({ q: query, resolve: true, type: 'accounts' })
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||||
|
|
||||||
import { library } from '@fortawesome/fontawesome-svg-core'
|
import { library } from '@fortawesome/fontawesome-svg-core'
|
||||||
import { faChevronLeft, faSearch } from '@fortawesome/free-solid-svg-icons'
|
import { faChevronLeft, faSearch } from '@fortawesome/free-solid-svg-icons'
|
||||||
|
import { useSearchStore } from 'src/stores/search.js'
|
||||||
|
|
||||||
library.add(faSearch, faChevronLeft)
|
library.add(faSearch, faChevronLeft)
|
||||||
|
|
||||||
|
|
@ -32,7 +33,7 @@ const ListsUserSearch = {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.$emit('loading')
|
this.$emit('loading')
|
||||||
this.userIds = []
|
this.userIds = []
|
||||||
this.useSearchStore()
|
useSearchStore()
|
||||||
.search({
|
.search({
|
||||||
q: query,
|
q: query,
|
||||||
resolve: true,
|
resolve: true,
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import Checkbox from 'src/components/checkbox/checkbox.vue'
|
||||||
import Quote from './quote.vue'
|
import Quote from './quote.vue'
|
||||||
|
|
||||||
import { useInstanceStore } from 'src/stores/instance.js'
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
|
import { useSearchStore } from 'src/stores/search.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -93,7 +94,7 @@ export default {
|
||||||
this.$emit('update:id', notice[3])
|
this.$emit('update:id', notice[3])
|
||||||
} else if (value) {
|
} else if (value) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.useSearchStore()
|
useSearchStore()
|
||||||
.search({
|
.search({
|
||||||
q: value,
|
q: value,
|
||||||
resolve: true,
|
resolve: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue