Skip to content

Commit

Permalink
fix: Add missing alert cause enum values (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmaSimon authored Sep 24, 2024
1 parent 679d197 commit d45b8eb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions iosApp/iosApp/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@
"Fire" : {
"comment" : "Possible alert cause"
},
"Fire Department Activity" : {
"comment" : "Possible alert cause"
},
"Flooding" : {
"comment" : "Possible alert cause"
},
"Fog" : {
"comment" : "Possible alert cause"
},
Expand Down
2 changes: 2 additions & 0 deletions iosApp/iosApp/Pages/AlertDetails/AlertDetails.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ struct AlertDetails: View {
case .drawbridgeBeingRaised: NSLocalizedString("Drawbridge Being Raised", comment: "Possible alert cause")
case .electricalWork: NSLocalizedString("Electrical Work", comment: "Possible alert cause")
case .fire: NSLocalizedString("Fire", comment: "Possible alert cause")
case .fireDepartmentActivity: NSLocalizedString("Fire Department Activity", comment: "Possible alert cause")
case .flooding: NSLocalizedString("Flooding", comment: "Possible alert cause")
case .fog: NSLocalizedString("Fog", comment: "Possible alert cause")
case .freightTrainInterference: NSLocalizedString("Freight Train Interference", comment: "Possible alert cause")
case .hazmatCondition: NSLocalizedString("Hazmat Condition", comment: "Possible alert cause")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ data class Alert(
@SerialName("drawbridge_being_raised") DrawbridgeBeingRaised,
@SerialName("electrical_work") ElectricalWork,
@SerialName("fire") Fire,
@SerialName("fire_department_activity") FireDepartmentActivity,
@SerialName("flooding") Flooding,
@SerialName("fog") Fog,
@SerialName("freight_train_interference") FreightTrainInterference,
@SerialName("hazmat_condition") HazmatCondition,
Expand Down

0 comments on commit d45b8eb

Please sign in to comment.