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/MkReactionsViewer.reaction.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/MkReactionsViewer.reaction.vue')
| -rw-r--r-- | packages/frontend/src/components/MkReactionsViewer.reaction.vue | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkReactionsViewer.reaction.vue b/packages/frontend/src/components/MkReactionsViewer.reaction.vue index b65038aadc..41e475eade 100644 --- a/packages/frontend/src/components/MkReactionsViewer.reaction.vue +++ b/packages/frontend/src/components/MkReactionsViewer.reaction.vue @@ -90,6 +90,15 @@ async function toggleReaction() { } }); } else { + if (defaultStore.state.confirmOnReact) { + const confirm = await os.confirm({ + type: 'question', + text: i18n.tsx.reactAreYouSure({ emoji: props.reaction.replace('@.', '') }), + }); + + if (confirm.canceled) return; + } + sound.playMisskeySfx('reaction'); if (mock) { |