mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
fix unfollow dialog
This commit is contained in:
parent
ae41fe06cc
commit
6b13136fa6
@ -65,6 +65,7 @@ export default class Account extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
toggleLike = async () => {
|
toggleLike = async () => {
|
||||||
|
if (this.state.isFollowed) {
|
||||||
const accept = await new Promise((resolve, reject) => {
|
const accept = await new Promise((resolve, reject) => {
|
||||||
antd.Modal.confirm({
|
antd.Modal.confirm({
|
||||||
title: <Translation>
|
title: <Translation>
|
||||||
@ -91,6 +92,7 @@ export default class Account extends React.Component {
|
|||||||
if (!accept) {
|
if (!accept) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const result = await FollowsModel.toggleFollow({
|
const result = await FollowsModel.toggleFollow({
|
||||||
username: this.state.requestedUser,
|
username: this.state.requestedUser,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user