forked from AkkomaGang/akkoma-fe
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
|
...this.$store.state.instance.customEmoji
|
||||||
] })
|
] })
|
||||||
},
|
},
|
||||||
|
userSuggestor () {
|
||||||
|
return suggestor({
|
||||||
|
users: this.$store.state.users.users,
|
||||||
|
updateUsersList: (query) => this.$store.dispatch('searchUsers', { query })
|
||||||
|
})
|
||||||
|
},
|
||||||
fieldsLimits () {
|
fieldsLimits () {
|
||||||
return this.$store.state.instance.fieldsLimits
|
return this.$store.state.instance.fieldsLimits
|
||||||
},
|
},
|
||||||
|
|
|
@ -104,8 +104,9 @@
|
||||||
>
|
>
|
||||||
<EmojiInput
|
<EmojiInput
|
||||||
v-model="newFields[i].name"
|
v-model="newFields[i].name"
|
||||||
:suggest="emojiSuggestor"
|
enable-emoji-picker
|
||||||
hide-emoji-button
|
hide-emoji-button
|
||||||
|
:suggest="userSuggestor"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
v-model="newFields[i].name"
|
v-model="newFields[i].name"
|
||||||
|
@ -114,8 +115,9 @@
|
||||||
</EmojiInput>
|
</EmojiInput>
|
||||||
<EmojiInput
|
<EmojiInput
|
||||||
v-model="newFields[i].value"
|
v-model="newFields[i].value"
|
||||||
:suggest="emojiSuggestor"
|
enable-emoji-picker
|
||||||
hide-emoji-button
|
hide-emoji-button
|
||||||
|
:suggest="userSuggestor"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
v-model="newFields[i].value"
|
v-model="newFields[i].value"
|
||||||
|
|
Loading…
Reference in a new issue