06/18 Update Inspection details view layout
This commit is contained in:
@@ -13,9 +13,15 @@ struct StartInspectionView: View {
|
||||
@Environment(\.modelContext) private var context
|
||||
@Environment(\.dismiss) private var dismiss
|
||||
|
||||
@Query(sort: \LocalTemplate.name) private var templates: [LocalTemplate]
|
||||
@Query(sort: \LocalTemplate.name) private var allTemplates: [LocalTemplate]
|
||||
@Query(sort: \LocalFacility.name) private var facilities: [LocalFacility]
|
||||
|
||||
/// Active templates only — inactive templates excluded from the picker.
|
||||
/// Filtered in Swift (not #Predicate) per CLAUDE.md rule 3.
|
||||
private var templates: [LocalTemplate] {
|
||||
allTemplates.filter { $0.isActive }
|
||||
}
|
||||
|
||||
@State private var selectedTemplateId: Int?
|
||||
@State private var selectedProjectId: Int?
|
||||
@State private var selectedFacilityId: Int?
|
||||
|
||||
Reference in New Issue
Block a user