improve emoji reaction action button behavior and feedback
This commit is contained in:
parent
4f3c20f388
commit
a2a1346162
8 changed files with 28 additions and 4 deletions
|
|
@ -131,6 +131,12 @@ export default {
|
|||
this.$store.dispatch('reactWithEmoji', { id: this.status.id, emoji })
|
||||
}
|
||||
},
|
||||
onShowEmojiPicker() {
|
||||
this.$emit('emojiPickerShown', true)
|
||||
},
|
||||
onHideEmojiPicker() {
|
||||
this.$emit('emojiPickerShown', false)
|
||||
},
|
||||
doActionWrap(
|
||||
button,
|
||||
close = () => {
|
||||
|
|
@ -142,7 +148,7 @@ export default {
|
|||
)
|
||||
return
|
||||
if (button.name === 'emoji') {
|
||||
this.$refs.picker.showPicker()
|
||||
this.$refs.picker.togglePicker()
|
||||
} else {
|
||||
this.animationState = true
|
||||
this.getComponent(button) === 'button' && this.doAction(button)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue