Verified Commit bad3dacf authored by kPherox's avatar kPherox

implement user suggestor for profile fields

parent fd2157ef
Pipeline #27423 passed with stages
in 9 minutes
......@@ -65,6 +65,12 @@ const ProfileTab = {
...this.$store.state.instance.customEmoji
] })
},
userSuggestor () {
return suggestor({
users: this.$store.state.users.users,
updateUsersList: (query) => this.$store.dispatch('searchUsers', { query })
})
},
fieldsLimits () {
return this.$store.state.instance.fieldsLimits
},
......
......@@ -104,8 +104,9 @@
>
<EmojiInput
v-model="newFields[i].name"
:suggest="emojiSuggestor"
enable-emoji-picker
hide-emoji-button
:suggest="userSuggestor"
>
<input
v-model="newFields[i].name"
......@@ -114,8 +115,9 @@
</EmojiInput>
<EmojiInput
v-model="newFields[i].value"
:suggest="emojiSuggestor"
enable-emoji-picker
hide-emoji-button
:suggest="userSuggestor"
>
<input
v-model="newFields[i].value"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment