All fuel prices per station (E10/E5/Diesel from one fetch); re-fetch on fuel switch; fuel tabs populate instantly
This commit is contained in:
@@ -120,6 +120,11 @@ struct ContentView: View {
|
||||
Task { await refresh() }
|
||||
}
|
||||
}
|
||||
.onChange(of: selectedFuel) { _, _ in
|
||||
// Re-fetch so the station set matches the selected fuel (relay
|
||||
// filters by grade); all prices still come back in one response.
|
||||
Task { await refresh() }
|
||||
}
|
||||
.onChange(of: alertsEnabled) { _, newValue in
|
||||
FuelStore.saveAlertsEnabled(newValue)
|
||||
monitor.setEnabled(newValue)
|
||||
|
||||
Reference in New Issue
Block a user