mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-13 13:37:31 -07:00
feat: ✨ dialog to remove follower
co-authored-by: atsu1125 <atsu1125@github>
This commit is contained in:
parent
afafc8b872
commit
9c4d6e2597
3 changed files with 4 additions and 0 deletions
|
@ -816,6 +816,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"
|
||||
|
|
|
@ -816,6 +816,7 @@ lastCommunication: "直近の通信"
|
|||
resolved: "解決済み"
|
||||
unresolved: "未解決"
|
||||
breakFollow: "フォロワーを解除"
|
||||
breakFollowConfirm: "フォロワー解除しますか?"
|
||||
itsOn: "オンになっています"
|
||||
itsOff: "オフになっています"
|
||||
emailRequiredForSignup: "アカウント登録にメールアドレスを必須にする"
|
||||
|
|
|
@ -192,6 +192,8 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
|||
}
|
||||
|
||||
async function invalidateFollow() {
|
||||
if (!(await getConfirmed(i18n.ts.breakFollowConfirm))) return;
|
||||
|
||||
os.apiWithDialog("following/invalidate", {
|
||||
userId: user.id,
|
||||
}).then(() => {
|
||||
|
|
Loading…
Reference in a new issue