Merge branch 'reactions-search' into 'develop'

make reactions-search case-insensitive

See merge request pleroma/pleroma-fe!1189
This commit is contained in:
Shpuld Shpludson 2020-07-16 06:04:49 +00:00
commit 950ae6d89a
1 changed files with 4 additions and 1 deletions

View File

@ -28,7 +28,10 @@ const ReactButton = {
},
emojis () {
if (this.filterWord !== '') {
return this.$store.state.instance.emoji.filter(emoji => emoji.displayText.includes(this.filterWord))
const filterWordLowercase = this.filterWord.toLowerCase()
return this.$store.state.instance.emoji.filter(emoji =>
emoji.displayText.toLowerCase().includes(filterWordLowercase)
)
}
return this.$store.state.instance.emoji || []
},