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:
FuelBoard Contributor
2026-08-11 17:16:55 +01:00
parent e8a82ce515
commit cde51622a3
2 changed files with 29 additions and 2 deletions
+5
View File
@@ -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)