diff options
| author | YAVIIGI <118232419+YAVIIGI@users.noreply.github.com> | 2023-12-13 08:15:25 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-13 08:15:25 +0900 |
| commit | daea5a39ade09bae7e416e6fb7ffb21c19303ef6 (patch) | |
| tree | 52376fe53a2c7bae7743deaecd0d5b7734d9b389 /packages/frontend/src/components/global/MkCustomEmoji.vue | |
| parent | Fix(backend): inboxJobPerSecのデフォルト値を16から32に (#12631) (diff) | |
| download | sharkey-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.vue | 2 |
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); } |