Add favourite price-drop Check now action

This commit is contained in:
FuelBoard Contributor
2026-08-17 19:59:45 +01:00
parent 276e0ff99e
commit f1c5923c88
3 changed files with 26 additions and 1 deletions
+3
View File
@@ -32,6 +32,7 @@ struct AlertsView: View {
let distanceUnit: DistanceUnit
let monitoredCount: Int
let lastAlert: String?
let onCheckFavouriteDropNow: () -> Void
/// The Stations-tab search distance shown in the user's unit, e.g.
/// "5 miles" or "8 km" for the "Follow search" rows.
@@ -139,6 +140,8 @@ struct AlertsView: View {
Text(fuel.displayName).tag(fuel)
}
}
Button("Check now", action: onCheckFavouriteDropNow)
.disabled(!favouriteDropEnabled)
} header: {
Text("Price-drop alerts")
} footer: {