fixed some bugs, added spam mode, minor collateral fixes

This commit is contained in:
Henry Jameson 2019-09-08 15:51:17 +03:00
parent db086fe1fd
commit 14df84d89b
9 changed files with 69 additions and 24 deletions

View file

@ -13,9 +13,11 @@ const EmojiPicker = {
},
data () {
return {
labelKey: String(Math.random() * 100000),
keyword: '',
activeGroup: 'custom',
showingStickers: false
showingStickers: false,
spamMode: false
}
},
components: {
@ -24,8 +26,7 @@ const EmojiPicker = {
methods: {
onEmoji (emoji) {
const value = emoji.imageUrl ? `:${emoji.displayText}:` : emoji.replacement
this.$emit('emoji', ` ${value} `)
this.open = false
this.$emit('emoji', { insertion: ` ${value} `, spamMode: this.spamMode })
},
highlight (key) {
const ref = this.$refs['group-' + key]