summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/global/MkCustomEmoji.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/MkCustomEmoji.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/MkCustomEmoji.vue')
-rw-r--r--packages/frontend/src/components/global/MkCustomEmoji.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/global/MkCustomEmoji.vue b/packages/frontend/src/components/global/MkCustomEmoji.vue
index a092497307..a9643d68ca 100644
--- a/packages/frontend/src/components/global/MkCustomEmoji.vue
+++ b/packages/frontend/src/components/global/MkCustomEmoji.vue
@@ -25,6 +25,7 @@ import { defaultStore } from '@/store.js';
import { customEmojisMap } from '@/custom-emojis.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<{
@@ -90,6 +91,7 @@ function onClick(ev: MouseEvent) {
icon: 'ti ti-plus',
action: () => {
react(`:${props.name}:`);
+ sound.play('reaction');
},
}] : [])], ev.currentTarget ?? ev.target);
}