From 969cd16638698a19dc707c01b48270871b5e2f6d Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 27 Feb 2020 07:04:28 +0900 Subject: Resolve #6091 --- src/client/pages/my-settings/reaction.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/pages/my-settings/reaction.vue b/src/client/pages/my-settings/reaction.vue index 7ce39380fd..b2df3f0231 100644 --- a/src/client/pages/my-settings/reaction.vue +++ b/src/client/pages/my-settings/reaction.vue @@ -3,13 +3,13 @@
{{ $t('reaction') }}
- {{ $t('reaction') }} + {{ $t('reaction') }} + {{ $t('default') }}
@@ -72,6 +72,15 @@ export default Vue.extend({ setDefault() { this.reactions = '👍❤😆🤔😮🎉💢😥😇🍮'; }, + + async chooseEmoji(ev) { + const vm = this.$root.new(await import('../../components/emoji-picker.vue').then(m => m.default), { + source: ev.currentTarget || ev.target + }).$once('chosen', emoji => { + this.reactions += emoji; + vm.close(); + }); + } } }); -- cgit v1.2.3-freya