mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-01 00:40:43 +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,
|
default: props.currentReactionAcceptance,
|
||||||
});
|
});
|
||||||
if (select.canceled) return;
|
|
||||||
emit('changeReactionAcceptance', select.result);
|
if (!select.canceled) {
|
||||||
|
emit('changeReactionAcceptance', select.result);
|
||||||
|
}
|
||||||
|
|
||||||
modal.value?.close();
|
modal.value?.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,9 +117,11 @@ async function reset() {
|
||||||
type: 'question',
|
type: 'question',
|
||||||
text: i18n.ts.resetAreYouSure,
|
text: i18n.ts.resetAreYouSure,
|
||||||
});
|
});
|
||||||
if (canceled) return;
|
|
||||||
|
|
||||||
emit('reset');
|
if (!canceled) {
|
||||||
|
emit('reset');
|
||||||
|
}
|
||||||
|
|
||||||
modal.value?.close();
|
modal.value?.close();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue