upd: confirm dialog for undoing follow request
This commit is contained in:
parent
19fc0a9351
commit
91e15fafbf
3 changed files with 15 additions and 0 deletions
|
|
@ -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,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue