diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-04-17 10:53:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-17 10:53:16 +0900 |
| commit | 977e2d2c09c3fbc2fd2eaead8fc7314d8d6f9fc4 (patch) | |
| tree | 79160712409744d724b5c42888585bdaa80fae41 /packages/frontend/src/components | |
| parent | enhance(frontend): ページの表示部上部に編集リンクを追加 (#1... (diff) | |
| download | sharkey-977e2d2c09c3fbc2fd2eaead8fc7314d8d6f9fc4.tar.gz sharkey-977e2d2c09c3fbc2fd2eaead8fc7314d8d6f9fc4.tar.bz2 sharkey-977e2d2c09c3fbc2fd2eaead8fc7314d8d6f9fc4.zip | |
enhance(frontend): フォローするかどうかの確認ダイアログを出せるように (#13723)
* feat(frontend): フォローするかどうかの確認ダイアログを出せるように
* Update Changelog
Diffstat (limited to 'packages/frontend/src/components')
| -rw-r--r-- | packages/frontend/src/components/MkFollowButton.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkFollowButton.vue b/packages/frontend/src/components/MkFollowButton.vue index 28450e11fc..636e61db8f 100644 --- a/packages/frontend/src/components/MkFollowButton.vue +++ b/packages/frontend/src/components/MkFollowButton.vue @@ -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, |