Change "Unfollow" to "Following"
This commit is contained in:
parent
2508c0a15e
commit
b235344268
|
@ -48,7 +48,6 @@
|
||||||
"account.unavailable" = "Profile unavailable";
|
"account.unavailable" = "Profile unavailable";
|
||||||
"account.unblock" = "Unblock";
|
"account.unblock" = "Unblock";
|
||||||
"account.unblock.confirm-%@" = "Unblock %@?";
|
"account.unblock.confirm-%@" = "Unblock %@?";
|
||||||
"account.unfollow" = "Unfollow";
|
|
||||||
"account.unfollow.confirm-%@" = "Unfollow %@?";
|
"account.unfollow.confirm-%@" = "Unfollow %@?";
|
||||||
"account.unmute" = "Unmute";
|
"account.unmute" = "Unmute";
|
||||||
"account.unmute.confirm-%@" = "Unmute %@?";
|
"account.unmute.confirm-%@" = "Unmute %@?";
|
||||||
|
|
|
@ -67,7 +67,7 @@ final class AccountHeaderView: UIView {
|
||||||
unfollowButton.isHidden = !(relationship.following || relationship.requested)
|
unfollowButton.isHidden = !(relationship.following || relationship.requested)
|
||||||
unfollowButton.setTitle(
|
unfollowButton.setTitle(
|
||||||
NSLocalizedString(
|
NSLocalizedString(
|
||||||
relationship.requested ? "account.request.cancel" : "account.unfollow",
|
relationship.requested ? "account.request.cancel" : "account.following",
|
||||||
comment: ""),
|
comment: ""),
|
||||||
for: .normal)
|
for: .normal)
|
||||||
|
|
||||||
|
@ -321,7 +321,7 @@ private extension AccountHeaderView {
|
||||||
systemName: "checkmark",
|
systemName: "checkmark",
|
||||||
withConfiguration: UIImage.SymbolConfiguration(scale: .small)),
|
withConfiguration: UIImage.SymbolConfiguration(scale: .small)),
|
||||||
for: .normal)
|
for: .normal)
|
||||||
unfollowButton.setTitle(NSLocalizedString("account.unfollow", comment: ""), for: .normal)
|
unfollowButton.setTitle(NSLocalizedString("account.following", comment: ""), for: .normal)
|
||||||
unfollowButton.isHidden = true
|
unfollowButton.isHidden = true
|
||||||
unfollowButton.addAction(
|
unfollowButton.addAction(
|
||||||
UIAction { [weak self] _ in self?.viewModel.accountViewModel?.confirmUnfollow() },
|
UIAction { [weak self] _ in self?.viewModel.accountViewModel?.confirmUnfollow() },
|
||||||
|
|
Loading…
Reference in New Issue