他のpopupMenuの項目選択時と挙動をあわせる

This commit is contained in:
kakkokari-gtyih 2024-10-21 23:29:16 +09:00
parent f722dddd75
commit 77d5f39a07

View file

@ -104,8 +104,11 @@ async function toggleReactionAcceptance() {
],
default: props.currentReactionAcceptance,
});
if (select.canceled) return;
emit('changeReactionAcceptance', select.result);
if (!select.canceled) {
emit('changeReactionAcceptance', select.result);
}
modal.value?.close();
}
@ -114,9 +117,11 @@ async function reset() {
type: 'question',
text: i18n.ts.resetAreYouSure,
});
if (canceled) return;
emit('reset');
if (!canceled) {
emit('reset');
}
modal.value?.close();
}
</script>