mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 07:49:53 +01:00
他のpopupMenuの項目選択時と挙動をあわせる
This commit is contained in:
parent
f722dddd75
commit
77d5f39a07
1 changed files with 9 additions and 4 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue