Merge branch 'reactions-search' into 'develop'
make reactions-search case-insensitive See merge request pleroma/pleroma-fe!1189
This commit is contained in:
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 || []
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue