upd: confirm dialog for undoing follow request

This commit is contained in:
Marie 2025-03-08 11:54:19 +00:00
parent 19fc0a9351
commit 91e15fafbf
3 changed files with 15 additions and 0 deletions

View file

@ -119,6 +119,16 @@ async function onClick() {
}
if (hasPendingFollowRequestFromYou.value) {
const { canceled } = await os.confirm({
type: 'question',
text: i18n.ts.undoFollowRequestConfirm,
});
if (canceled) {
wait.value = false;
return;
}
await misskeyApi('following/requests/cancel', {
userId: props.user.id,
});