diff --git a/src/components/react_button/react_button.js b/src/components/react_button/react_button.js index 3ef5dccf..2b1b4cc1 100644 --- a/src/components/react_button/react_button.js +++ b/src/components/react_button/react_button.js @@ -1,4 +1,3 @@ -import Checkbox from '../checkbox/checkbox.vue' import Popover from '../popover/popover.vue' import { library } from '@fortawesome/fontawesome-svg-core' import { faSmileBeam } from '@fortawesome/free-regular-svg-icons' @@ -9,26 +8,21 @@ const ReactButton = { props: ['status'], data () { return { - filterWord: '', - keepReactOpen: false + filterWord: '' } }, components: { - Popover, - Checkbox + Popover }, methods: { - addReaction (event, emoji, close, keepReactOpen) { + addReaction (event, emoji, close) { const existingReaction = this.status.emoji_reactions.find(r => r.name === emoji) if (existingReaction && existingReaction.me) { this.$store.dispatch('unreactWithEmoji', { id: this.status.id, emoji }) } else { this.$store.dispatch('reactWithEmoji', { id: this.status.id, emoji }) } - this.keepReactOpen = keepReactOpen - if (!keepReactOpen) { - close() - } + close() }, focusInput () { this.$nextTick(() => { diff --git a/src/components/react_button/react_button.vue b/src/components/react_button/react_button.vue index c057fbd9..ffef82bf 100644 --- a/src/components/react_button/react_button.vue +++ b/src/components/react_button/react_button.vue @@ -16,18 +16,13 @@ :placeholder="$t('emoji.search_emoji')" > -