mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-25 05:04:08 +02:00
fix(frontend): フォロー申請のキャンセル時に確認ダイアログを出すように (#16834)
* fix(frontend): フォロー申請のキャンセル時に確認ダイアログを出すように * Update Changelog * fix: 注釈は書かない
This commit is contained in:
@@ -63,14 +63,28 @@ function accept(user: Misskey.entities.UserLite) {
|
||||
});
|
||||
}
|
||||
|
||||
function reject(user: Misskey.entities.UserLite) {
|
||||
os.apiWithDialog('following/requests/reject', { userId: user.id }).then(() => {
|
||||
async function reject(user: Misskey.entities.UserLite) {
|
||||
const { canceled } = await os.confirm({
|
||||
type: 'question',
|
||||
text: i18n.tsx.rejectFollowRequestConfirm({ name: user.name || user.username }),
|
||||
});
|
||||
|
||||
if (canceled) return;
|
||||
|
||||
await os.apiWithDialog('following/requests/reject', { userId: user.id }).then(() => {
|
||||
paginator.reload();
|
||||
});
|
||||
}
|
||||
|
||||
function cancel(user: Misskey.entities.UserLite) {
|
||||
os.apiWithDialog('following/requests/cancel', { userId: user.id }).then(() => {
|
||||
async function cancel(user: Misskey.entities.UserLite) {
|
||||
const { canceled } = await os.confirm({
|
||||
type: 'question',
|
||||
text: i18n.tsx.cancelFollowRequestConfirm({ name: user.name || user.username }),
|
||||
});
|
||||
|
||||
if (canceled) return;
|
||||
|
||||
await os.apiWithDialog('following/requests/cancel', { userId: user.id }).then(() => {
|
||||
paginator.reload();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user