summaryrefslogtreecommitdiff
path: root/src/client/components/note.vue
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-11-07 10:43:27 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-11-07 10:43:27 +0900
commitbef2534fa86cc58654c23bbc8d59f9f9e756f762 (patch)
treedb8537d43d9bf7d88f8c88c7f33dab9d33ac18fc /src/client/components/note.vue
parent画像ダイアログでスクロールが発生しないように (diff)
downloadsharkey-bef2534fa86cc58654c23bbc8d59f9f9e756f762.tar.gz
sharkey-bef2534fa86cc58654c23bbc8d59f9f9e756f762.tar.bz2
sharkey-bef2534fa86cc58654c23bbc8d59f9f9e756f762.zip
絵文字ピッカーを強化 + 絵文字ピッカーをリアクションピッカーとして使えるように
Resolve #5079 Resolve #3219
Diffstat (limited to 'src/client/components/note.vue')
-rw-r--r--src/client/components/note.vue44
1 files changed, 30 insertions, 14 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue
index 377496b402..53972d9f6f 100644
--- a/src/client/components/note.vue
+++ b/src/client/components/note.vue
@@ -498,20 +498,36 @@ export default defineComponent({
react(viaKeyboard = false) {
pleaseLogin();
this.blur();
- os.popup(import('@/components/reaction-picker.vue'), {
- showFocus: viaKeyboard,
- src: this.$refs.reactButton,
- }, {
- done: reaction => {
- if (reaction) {
- os.api('notes/reactions/create', {
- noteId: this.appearNote.id,
- reaction: reaction
- });
- }
- this.focus();
- },
- }, 'closed');
+ if (this.$store.state.device.useFullReactionPicker) {
+ os.popup(import('@/components/emoji-picker.vue'), {
+ src: this.$refs.reactButton,
+ }, {
+ done: reaction => {
+ if (reaction) {
+ os.api('notes/reactions/create', {
+ noteId: this.appearNote.id,
+ reaction: reaction
+ });
+ }
+ this.focus();
+ },
+ }, 'closed');
+ } else {
+ os.popup(import('@/components/reaction-picker.vue'), {
+ showFocus: viaKeyboard,
+ src: this.$refs.reactButton,
+ }, {
+ done: reaction => {
+ if (reaction) {
+ os.api('notes/reactions/create', {
+ noteId: this.appearNote.id,
+ reaction: reaction
+ });
+ }
+ this.focus();
+ },
+ }, 'closed');
+ }
},
reactDirectly(reaction) {