Add a mention / reply button on user profile navigation
This commit is contained in:
parent
58debff490
commit
3525d94f71
|
@ -305,7 +305,18 @@ public struct AccountDetailView: View {
|
|||
|
||||
@ToolbarContentBuilder
|
||||
private var toolbarContent: some ToolbarContent {
|
||||
ToolbarItem(placement: .navigationBarTrailing) {
|
||||
ToolbarItemGroup(placement: .navigationBarTrailing) {
|
||||
if !viewModel.isCurrentUser {
|
||||
Button {
|
||||
if let account = viewModel.account {
|
||||
routerPath.presentedSheet = .mentionStatusEditor(account: account,
|
||||
visibility: preferences.postVisibility)
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: "arrowshape.turn.up.left")
|
||||
}
|
||||
}
|
||||
|
||||
Menu {
|
||||
AccountDetailContextMenu(viewModel: viewModel)
|
||||
|
||||
|
|
Loading…
Reference in New Issue