mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 02:29:55 +02:00
feat(apple): open the share panel right after creating a transfer
After Start sharing succeeds, jump straight to the new transfer's share panel (QR code + delivery actions) instead of returning to the list and making the user drill in via the row and the share row. Refresh first so the transfer exists in state before selecting it; the share panel already handles the brief window before the ticket is ready.
This commit is contained in:
@@ -300,6 +300,13 @@ final class SendModel: ObservableObject {
|
||||
state.transferName = ""
|
||||
state.accessPolicy = .requireApproval
|
||||
state.isSharing = false
|
||||
// Jump straight to the new transfer's share panel (QR + delivery) rather
|
||||
// than dropping the user on the list to drill in manually. Refresh first
|
||||
// so the transfer exists in state before it's selected.
|
||||
_ = await repository.refresh()
|
||||
state.selectedTransferId = share.transferId
|
||||
state.detailPanel = .share
|
||||
refreshReceivers(share.transferId)
|
||||
messages.show(UiMessage(text: .resource(L10n.Send.transferCreated), tone: .success))
|
||||
case .failure(let error):
|
||||
state.isSharing = false
|
||||
|
||||
Reference in New Issue
Block a user