Skip to content

Commit

Permalink
Add dialog to remove follower (misskey-dev#9718)
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 authored and yu256 committed Mar 5, 2023
1 parent b0f1df9 commit 8217d5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions locales/en-US.yml
Original file line number Diff line number Diff line change
Expand Up @@ -810,6 +810,7 @@ lastCommunication: "Last communication"
resolved: "Resolved"
unresolved: "Unresolved"
breakFollow: "Remove follower"
breakFollowConfirm: "Are you sure want to remove follower?"
itsOn: "Enabled"
itsOff: "Disabled"
emailRequiredForSignup: "Require email address for sign-up"
Expand Down
1 change: 1 addition & 0 deletions locales/ja-JP.yml
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,7 @@ lastCommunication: "直近の通信"
resolved: "解決済み"
unresolved: "未解決"
breakFollow: "フォロワーを解除"
breakFollowConfirm: "フォロワーを解除しますか?"
itsOn: "オンになっています"
itsOff: "オフになっています"
emailRequiredForSignup: "アカウント登録にメールアドレスを必須にする"
Expand Down
2 changes: 2 additions & 0 deletions packages/client/src/scripts/get-user-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ export function getUserMenu(user: misskey.entities.UserDetailed, router: Router
}

async function invalidateFollow() {
if (!await getConfirmed(i18n.ts.breakFollowConfirm)) return;

os.apiWithDialog('following/invalidate', {
userId: user.id,
}).then(() => {
Expand Down

0 comments on commit 8217d5f

Please sign in to comment.