mirror of
https://github.com/metabolist/metatext.git
synced 2025-02-26 18:36:22 +00:00
Fix add/remove from lists visibility (#4)
This commit is contained in:
parent
0f4ec569d6
commit
466a351a73
1 changed files with 6 additions and 5 deletions
|
@ -74,17 +74,18 @@ private extension ProfileViewController {
|
||||||
// swiftlint:disable:next function_body_length
|
// swiftlint:disable:next function_body_length
|
||||||
func menu(accountViewModel: AccountViewModel, relationship: Relationship) -> UIMenu {
|
func menu(accountViewModel: AccountViewModel, relationship: Relationship) -> UIMenu {
|
||||||
var actions = [UIAction(
|
var actions = [UIAction(
|
||||||
title: NSLocalizedString("account.add-remove-lists", comment: ""),
|
|
||||||
image: UIImage(systemName: "scroll")) { [weak self] _ in
|
|
||||||
self?.addRemoveFromLists(accountViewModel: accountViewModel)
|
|
||||||
},
|
|
||||||
UIAction(
|
|
||||||
title: NSLocalizedString("share", comment: ""),
|
title: NSLocalizedString("share", comment: ""),
|
||||||
image: UIImage(systemName: "square.and.arrow.up")) { _ in
|
image: UIImage(systemName: "square.and.arrow.up")) { _ in
|
||||||
accountViewModel.share()
|
accountViewModel.share()
|
||||||
}]
|
}]
|
||||||
|
|
||||||
if relationship.following {
|
if relationship.following {
|
||||||
|
actions.append(UIAction(
|
||||||
|
title: NSLocalizedString("account.add-remove-lists", comment: ""),
|
||||||
|
image: UIImage(systemName: "scroll")) { [weak self] _ in
|
||||||
|
self?.addRemoveFromLists(accountViewModel: accountViewModel)
|
||||||
|
})
|
||||||
|
|
||||||
if relationship.showingReblogs {
|
if relationship.showingReblogs {
|
||||||
actions.append(UIAction(
|
actions.append(UIAction(
|
||||||
title: NSLocalizedString("account.hide-reblogs", comment: ""),
|
title: NSLocalizedString("account.hide-reblogs", comment: ""),
|
||||||
|
|
Loading…
Reference in a new issue