1
0
mirror of https://akkoma.dev/lamp/akkoma-fe.git synced 2025-05-02 20:44:04 -04:00

Merge branch 'reactions-search' into 'develop'

make reactions-search case-insensitive

See merge request 
This commit is contained in:
Shpuld Shpludson 2020-07-16 06:04:49 +00:00
commit 950ae6d89a

@ -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 || []
},