enhance(frontend): リアクション時に確認ダイアログを出せるように (#15174)

* enhance(frontend): リアクション時に確認ダイアログを出せるように

* Update Changelog

* indent

* fix
This commit is contained in:
かっこかり
2025-02-15 13:01:06 +09:00
committed by GitHub
parent 208b201776
commit d8c4908aa5
8 changed files with 46 additions and 2 deletions

View File

@@ -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) {