feat: savings tab, fix pull-to-refresh, beautiful modals, fix signing
This commit is contained in:
@@ -99,13 +99,13 @@ struct DashboardView: View {
|
||||
Spacer(minLength: 20)
|
||||
}
|
||||
}
|
||||
.refreshable { await loadData() }
|
||||
.refreshable { await loadData(refresh: true) }
|
||||
}
|
||||
.task { await loadData() }
|
||||
}
|
||||
|
||||
func loadData() async {
|
||||
isLoading = true
|
||||
func loadData(refresh: Bool = false) async {
|
||||
if !refresh { isLoading = true }
|
||||
async let t = APIService.shared.getTodayTasks(token: authManager.token)
|
||||
async let h = APIService.shared.getHabits(token: authManager.token)
|
||||
async let r = HealthAPIService.shared.getReadiness(apiKey: authManager.healthApiKey)
|
||||
|
||||
Reference in New Issue
Block a user