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:
2026-08-07 10:33:10 +02:00
parent 3441280599
commit 677fc3c6d5
3 changed files with 11 additions and 7 deletions

View File

@@ -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() }
}
}