diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2021-02-28 01:09:59 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2021-02-28 01:09:59 +0900 |
| commit | 764a158cd7e112186cbf54cb77599bcd22ea7d69 (patch) | |
| tree | f3ef0d147088c65ed4d8573d9579313e153df8ee /src/client/ui | |
| parent | Merge branch 'develop' of https://github.com/syuilo/misskey into develop (diff) | |
| download | sharkey-764a158cd7e112186cbf54cb77599bcd22ea7d69.tar.gz sharkey-764a158cd7e112186cbf54cb77599bcd22ea7d69.tar.bz2 sharkey-764a158cd7e112186cbf54cb77599bcd22ea7d69.zip | |
Resolve #7270
Diffstat (limited to 'src/client/ui')
| -rw-r--r-- | src/client/ui/chat/note.vue | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/src/client/ui/chat/note.vue b/src/client/ui/chat/note.vue index d80978e182..75b92a32f2 100644 --- a/src/client/ui/chat/note.vue +++ b/src/client/ui/chat/note.vue @@ -504,23 +504,14 @@ export default defineComponent({ pleaseLogin(); this.operating = true; this.blur(); - const { dispose } = await 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 - }); - } - }, - closed: () => { - this.operating = false; - this.focus(); - dispose(); - } + os.pickReaction(this.$refs.reactButton, reaction => { + os.api('notes/reactions/create', { + noteId: this.appearNote.id, + reaction: reaction + }); + }, () => { + this.operating = false; + this.focus(); }); }, |