aboutsummaryrefslogtreecommitdiff
path: root/src/components/settings_modal/tabs
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-11-18 18:43:24 +0200
committerShpuld Shpuldson <shp@cock.li>2020-11-18 18:43:24 +0200
commit0f386ccbc7115fd1d74615377beca9982dec00bf (patch)
tree1367a87b30072c67cab84100ce39ec015b803a21 /src/components/settings_modal/tabs
parentdd3c8631bf0ec21735d97c41e9e64d0d05643dbc (diff)
use users state + fetching with delay
Diffstat (limited to 'src/components/settings_modal/tabs')
-rw-r--r--src/components/settings_modal/tabs/profile_tab.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/components/settings_modal/tabs/profile_tab.js b/src/components/settings_modal/tabs/profile_tab.js
index a3e4feaf..a4fed629 100644
--- a/src/components/settings_modal/tabs/profile_tab.js
+++ b/src/components/settings_modal/tabs/profile_tab.js
@@ -68,8 +68,7 @@ const ProfileTab = {
...this.$store.state.instance.emoji,
...this.$store.state.instance.customEmoji
],
- users: this.$store.state.users.users,
- updateUsersList: (query) => this.$store.dispatch('searchUsers', { query })
+ store: this.$store
})
},
emojiSuggestor () {
@@ -79,10 +78,7 @@ const ProfileTab = {
] })
},
userSuggestor () {
- return suggestor({
- users: this.$store.state.users.users,
- updateUsersList: (query) => this.$store.dispatch('searchUsers', { query })
- })
+ return suggestor({ store: this.$store })
},
fieldsLimits () {
return this.$store.state.instance.fieldsLimits