commit: 950ae6d89a95e74e74b3f2e5abcd9233c3db8958
parent: 0478e82bab84fc406fa7d45e0de91b0a50d8e413
Author: Shpuld Shpludson <shp@cock.li>
Date: Thu, 16 Jul 2020 06:04:49 +0000
Merge branch 'reactions-search' into 'develop'
make reactions-search case-insensitive
See merge request pleroma/pleroma-fe!1189
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/components/react_button/react_button.js b/src/components/react_button/react_button.js
@@ -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 || []
},