summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2021-03-05 13:49:46 +0900
committersyuilo <syuilotan@yahoo.co.jp>2021-03-05 13:49:46 +0900
commitf871cf10538cc35d67114d780ec13afa4d30903c (patch)
tree54ea2d2fd2706376513bfafc6c03fb6936587ed2 /src/client/components
parentMerge pull request #7295 from syuilo/dependabot/npm_and_yarn/typescript-eslin... (diff)
downloadsharkey-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.vue3
-rw-r--r--src/client/components/note.vue3
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