mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-28 19:11:30 +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
|
||||
func menu(accountViewModel: AccountViewModel, relationship: Relationship) -> UIMenu {
|
||||
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: ""),
|
||||
image: UIImage(systemName: "square.and.arrow.up")) { _ in
|
||||
accountViewModel.share()
|
||||
}]
|
||||
|
||||
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 {
|
||||
actions.append(UIAction(
|
||||
title: NSLocalizedString("account.hide-reblogs", comment: ""),
|
||||
|
|
Loading…
Reference in a new issue