Quck fixes

- Maps button now works properly, I figured out the URL scheme needed to direct to a map location
- Notifications will now be automatically rescheduled when changing the notification offset
This commit is contained in:
2025-12-08 12:31:29 -05:00
parent 207fa788e1
commit 20f1b3df59
3 changed files with 10 additions and 3 deletions

View File

@@ -50,6 +50,13 @@ struct VisitingChefPush: View {
Text("3 Hours Before").tag(3)
}
.disabled(!pushAllowed || !pushEnabled)
.onChange(of: notificationOffset) {
Task {
// If we changed the offset, we need to reschedule everything.
await model.cancelAllPushes()
await model.scheduleAllPushes()
}
}
}
Section(footer: Text("Get notified when and where a specific visiting chef will be on campus.")) {
ForEach(visitingChefs, id: \.self) { chef in