split spam mode into two separate options (one in settings page)
This commit is contained in:
parent
3cd23ae2d4
commit
7b4cb38734
9 changed files with 43 additions and 26 deletions
|
|
@ -18,7 +18,7 @@ const EmojiPicker = {
|
|||
activeGroup: 'custom',
|
||||
showingStickers: false,
|
||||
groupsScrolledClass: 'scrolled-top',
|
||||
spamMode: false
|
||||
keepOpen: false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
|
|
@ -27,7 +27,7 @@ const EmojiPicker = {
|
|||
methods: {
|
||||
onEmoji (emoji) {
|
||||
const value = emoji.imageUrl ? `:${emoji.displayText}:` : emoji.replacement
|
||||
this.$emit('emoji', { insertion: value, spamMode: this.spamMode })
|
||||
this.$emit('emoji', { insertion: value, keepOpen: this.keepOpen })
|
||||
},
|
||||
highlight (key) {
|
||||
const ref = this.$refs['group-' + key]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue