feat(apple): add context menus to Send and Receive rows

Send rows get a context menu that acts inline without navigating: Share opens the
share panel (QR + delivery) over the list via a dedicated sheet host, Stop sharing
(active shares) and Delete transfer run in place, the latter through a new id-based
SendModel.deleteTransfer and a list-level confirmation alert. Receive rows get a
Delete action mirroring swipe-to-delete (handy on macOS).
This commit is contained in:
2026-07-24 15:08:37 +02:00
parent 30dfabf8e7
commit c7ebaee15b
3 changed files with 89 additions and 0 deletions

View File

@@ -79,6 +79,15 @@ struct ReceiveScreen: View {
}
}
}
.contextMenu {
if transfer.status.isTerminalReceiveHistory {
Button(role: .destructive) {
model.requestDeleteHistoryItem(transfer.transferId)
} label: {
Label(String(localized: L10n.Button.deleteTransfer), systemSymbol: .trash)
}
}
}
}
} header: {
Text(String(localized: L10n.Receive.historyTitle))