他のpopupMenuの項目選択時と挙動をあわせる
This commit is contained in:
parent
f722dddd75
commit
77d5f39a07
|
@ -104,8 +104,11 @@ async function toggleReactionAcceptance() {
|
|||
],
|
||||
default: props.currentReactionAcceptance,
|
||||
});
|
||||
if (select.canceled) return;
|
||||
|
||||
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;
|
||||
|
||||
if (!canceled) {
|
||||
emit('reset');
|
||||
}
|
||||
|
||||
modal.value?.close();
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue