summaryrefslogtreecommitdiff
path: root/src/client/components/note.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2021-02-28 01:09:59 +0900
committersyuilo <syuilotan@yahoo.co.jp>2021-02-28 01:09:59 +0900
commit764a158cd7e112186cbf54cb77599bcd22ea7d69 (patch)
treef3ef0d147088c65ed4d8573d9579313e153df8ee /src/client/components/note.vue
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-764a158cd7e112186cbf54cb77599bcd22ea7d69.tar.gz
sharkey-764a158cd7e112186cbf54cb77599bcd22ea7d69.tar.bz2
sharkey-764a158cd7e112186cbf54cb77599bcd22ea7d69.zip
Resolve #7270
Diffstat (limited to 'src/client/components/note.vue')
-rw-r--r--src/client/components/note.vue22
1 files changed, 8 insertions, 14 deletions
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) {