mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-07 11:19:58 +02:00
fix(apple): make the device detail screen reachable
The Settings stack has a typed path of [SettingsSection], so a NavigationLink carrying a String could never push onto it: tapping a device in the list did nothing. Contact detail is now a SettingsSection case, and the path maps it to the two-level push the way the bug report screen already does.
This commit is contained in:
@@ -25,7 +25,7 @@ struct ContactsScreen: View {
|
||||
} else {
|
||||
Section(String(localized: L10n.Contacts.title)) {
|
||||
ForEach(model.state.contacts) { contact in
|
||||
NavigationLink(value: contact.endpointId) {
|
||||
NavigationLink(value: SettingsSection.contactDetail(endpointId: contact.endpointId)) {
|
||||
ContactRow(contact: contact)
|
||||
}
|
||||
}
|
||||
@@ -75,9 +75,6 @@ struct ContactsScreen: View {
|
||||
}
|
||||
.formStyle(.grouped)
|
||||
.navigationTitle(Text(String(localized: L10n.Contacts.title)))
|
||||
.navigationDestination(for: String.self) { endpointId in
|
||||
ContactDetailScreen(model: model, endpointId: endpointId)
|
||||
}
|
||||
.task { await model.refresh() }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user