- HermesScaffold: added isRefreshing param, wraps content in PullToRefreshBox when onRefresh is set - All 16 data screens: pass isRefreshing = state.isLoading - Initial loading only shows full-screen LoadingState when data is empty (no spinner over existing content) - AchievementsScreen already had the correct pattern, just needed isRefreshing param Co-authored-by: M57 <hy4ri@users.noreply.github.com>
This commit is contained in:
1 parent
d37de1d223
commit
4892572bcc
18 files changed
+56
-23
No files matched your search
@@ -61,10 +61,11 @@ fun CronJobsScreen(
|
||||
HermesScaffold(
|
||||
title = { Text("Cron Jobs") },
|
||||
onOpenDrawer = onOpenDrawer,
|
||||
isRefreshing = state.isLoading,
|
||||
onRefresh = { viewModel.loadCronJobs() },
|
||||
) {
|
||||
when {
|
||||
state.isLoading -> LoadingState()
|
||||
state.isLoading && state.jobs.isEmpty() -> LoadingState()
|
||||
state.errorMessage != null ->
|
||||
ErrorState(
|
||||
message = state.errorMessage ?: "Unknown error",
|
||||
|
||||
Reference in new issue
Block a user