diff options
| author | Shpuld Shpuldson <shp@cock.li> | 2020-11-18 18:43:24 +0200 |
|---|---|---|
| committer | Shpuld Shpuldson <shp@cock.li> | 2020-11-18 18:43:24 +0200 |
| commit | 0f386ccbc7115fd1d74615377beca9982dec00bf (patch) | |
| tree | 1367a87b30072c67cab84100ce39ec015b803a21 /src/components/settings_modal/tabs | |
| parent | dd3c8631bf0ec21735d97c41e9e64d0d05643dbc (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.js | 8 |
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 |
