From 764a158cd7e112186cbf54cb77599bcd22ea7d69 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 28 Feb 2021 01:09:59 +0900 Subject: Resolve #7270 --- src/client/components/note.vue | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'src/client/components/note.vue') diff --git a/src/client/components/note.vue b/src/client/components/note.vue index 6af0668e2e..dab7643762 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -498,20 +498,14 @@ export default defineComponent({ react(viaKeyboard = false) { pleaseLogin(); this.blur(); - os.popup(import('@/components/emoji-picker-dialog.vue'), { - src: this.$refs.reactButton, - asReactionPicker: true - }, { - done: reaction => { - if (reaction) { - os.api('notes/reactions/create', { - noteId: this.appearNote.id, - reaction: reaction - }); - } - this.focus(); - }, - }, 'closed'); + os.pickReaction(this.$refs.reactButton, reaction => { + os.api('notes/reactions/create', { + noteId: this.appearNote.id, + reaction: reaction + }); + }, () => { + this.focus(); + }); }, reactDirectly(reaction) { -- cgit v1.2.3-freya