implement user suggestor for profile fields
This commit is contained in:
parent
fd2157efe4
commit
bad3dacfac
2 changed files with 10 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue