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/components | |
| parent | Merge pull request #7295 from syuilo/dependabot/npm_and_yarn/typescript-eslin... (diff) | |
| download | sharkey-f871cf10538cc35d67114d780ec13afa4d30903c.tar.gz sharkey-f871cf10538cc35d67114d780ec13afa4d30903c.tar.bz2 sharkey-f871cf10538cc35d67114d780ec13afa4d30903c.zip | |
Improve reaction picker performance
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/note-detailed.vue | 3 | ||||
| -rw-r--r-- | src/client/components/note.vue | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/client/components/note-detailed.vue b/src/client/components/note-detailed.vue index b5bc054e5e..1ef3f43389 100644 --- a/src/client/components/note-detailed.vue +++ b/src/client/components/note-detailed.vue @@ -140,6 +140,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) { @@ -523,7 +524,7 @@ export default defineComponent({ react(viaKeyboard = false) { pleaseLogin(); 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 diff --git a/src/client/components/note.vue b/src/client/components/note.vue index bc2f87fe85..65e09b7802 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -122,6 +122,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) { @@ -498,7 +499,7 @@ export default defineComponent({ react(viaKeyboard = false) { pleaseLogin(); 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 |