enhance(frontend): フォローするかどうかの確認ダイアログを出せるように (#13723)

* feat(frontend): フォローするかどうかの確認ダイアログを出せるように

* Update Changelog
This commit is contained in:
かっこかり
2024-04-17 10:53:16 +09:00
committed by GitHub
parent 6f489b58a1
commit 977e2d2c09
6 changed files with 25 additions and 0 deletions

View File

@@ -93,6 +93,18 @@ async function onClick() {
userId: props.user.id,
});
} else {
if (defaultStore.state.alwaysConfirmFollow) {
const { canceled } = await os.confirm({
type: 'question',
text: i18n.tsx.followConfirm({ name: props.user.name || props.user.username }),
});
if (canceled) {
wait.value = false;
return;
}
}
if (hasPendingFollowRequestFromYou.value) {
await misskeyApi('following/requests/cancel', {
userId: props.user.id,