summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/global/MkEmoji.vue
diff options
context:
space:
mode:
authorYAVIIGI <118232419+YAVIIGI@users.noreply.github.com>2023-12-13 08:15:25 +0900
committerGitHub <noreply@github.com>2023-12-13 08:15:25 +0900
commitdaea5a39ade09bae7e416e6fb7ffb21c19303ef6 (patch)
tree52376fe53a2c7bae7743deaecd0d5b7734d9b389 /packages/frontend/src/components/global/MkEmoji.vue
parentFix(backend): inboxJobPerSecのデフォルト値を16から32に (#12631) (diff)
downloadsharkey-daea5a39ade09bae7e416e6fb7ffb21c19303ef6.tar.gz
sharkey-daea5a39ade09bae7e416e6fb7ffb21c19303ef6.tar.bz2
sharkey-daea5a39ade09bae7e416e6fb7ffb21c19303ef6.zip
fix(frontend): ノート中の絵文字をタップして「リアクションする」を押したときにリアクションサウンドが鳴るようにする (#12624)
* Add sound.play() in copy reaction * Update CHANGELOG.md * fix lint error
Diffstat (limited to 'packages/frontend/src/components/global/MkEmoji.vue')
-rw-r--r--packages/frontend/src/components/global/MkEmoji.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/global/MkEmoji.vue b/packages/frontend/src/components/global/MkEmoji.vue
index 0855f20b8d..76ca8688d1 100644
--- a/packages/frontend/src/components/global/MkEmoji.vue
+++ b/packages/frontend/src/components/global/MkEmoji.vue
@@ -16,6 +16,7 @@ import { defaultStore } from '@/store.js';
import { getEmojiName } from '@/scripts/emojilist.js';
import * as os from '@/os.js';
import copyToClipboard from '@/scripts/copy-to-clipboard.js';
+import * as sound from '@/scripts/sound.js';
import { i18n } from '@/i18n.js';
const props = defineProps<{
@@ -56,6 +57,7 @@ function onClick(ev: MouseEvent) {
icon: 'ti ti-plus',
action: () => {
react(props.emoji);
+ sound.play('reaction');
},
}] : [])], ev.currentTarget ?? ev.target);
}