diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2021-03-05 13:49:46 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2021-03-05 13:49:46 +0900 |
| commit | f871cf10538cc35d67114d780ec13afa4d30903c (patch) | |
| tree | 54ea2d2fd2706376513bfafc6c03fb6936587ed2 /src/client/ui | |
| parent | Merge pull request #7295 from syuilo/dependabot/npm_and_yarn/typescript-eslin... (diff) | |
| download | misskey-f871cf10538cc35d67114d780ec13afa4d30903c.tar.gz misskey-f871cf10538cc35d67114d780ec13afa4d30903c.tar.bz2 misskey-f871cf10538cc35d67114d780ec13afa4d30903c.zip | |
Improve reaction picker performance
Diffstat (limited to 'src/client/ui')
| -rw-r--r-- | src/client/ui/chat/note.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/ui/chat/note.vue b/src/client/ui/chat/note.vue index bd7bbc5a4f..5a4a13d889 100644 --- a/src/client/ui/chat/note.vue +++ b/src/client/ui/chat/note.vue @@ -121,6 +121,7 @@ import { checkWordMute } from '@/scripts/check-word-mute'; import { userPage } from '@/filters/user'; import * as os from '@/os'; import { noteActions, noteViewInterruptors } from '@/store'; +import { reactionPicker } from '@/scripts/reaction-picker'; function markRawAll(...xs) { for (const x of xs) { @@ -504,7 +505,7 @@ export default defineComponent({ pleaseLogin(); this.operating = true; this.blur(); - os.pickReaction(this.$refs.reactButton, reaction => { + reactionPicker.show(this.$refs.reactButton, reaction => { os.api('notes/reactions/create', { noteId: this.appearNote.id, reaction: reaction |