diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2025-02-15 13:01:06 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-15 04:01:06 +0000 |
| commit | d8c4908aa55ddf147219d9c6eb889bc1b5002454 (patch) | |
| tree | 55bd255c8021f9989d1e9954f7633f2a1c63ea64 /packages/frontend/src/components/MkNote.vue | |
| parent | chore(deps): update [github actions] update dependencies (#15490) (diff) | |
| download | misskey-d8c4908aa55ddf147219d9c6eb889bc1b5002454.tar.gz misskey-d8c4908aa55ddf147219d9c6eb889bc1b5002454.tar.bz2 misskey-d8c4908aa55ddf147219d9c6eb889bc1b5002454.zip | |
enhance(frontend): リアクション時に確認ダイアログを出せるように (#15174)
* enhance(frontend): リアクション時に確認ダイアログを出せるように
* Update Changelog
* indent
* fix
Diffstat (limited to 'packages/frontend/src/components/MkNote.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNote.vue | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 919734f763..193dfe5b7e 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -489,7 +489,16 @@ function react(): void { } } else { blur(); - reactionPicker.show(reactButton.value ?? null, note.value, reaction => { + reactionPicker.show(reactButton.value ?? null, note.value, async (reaction) => { + if (defaultStore.state.confirmOnReact) { + const confirm = await os.confirm({ + type: 'question', + text: i18n.tsx.reactAreYouSure({ emoji: reaction.replace('@.', '') }), + }); + + if (confirm.canceled) return; + } + sound.playMisskeySfx('reaction'); if (props.mock) { |