This commit is contained in:
5 files changed
+55
No files matched your search
@@ -36,6 +36,7 @@ import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
import androidx.lifecycle.viewmodel.compose.viewModel
|
||||
import com.m57.hermescontrol.ui.common.EmptyState
|
||||
import com.m57.hermescontrol.ui.common.ErrorState
|
||||
import com.m57.hermescontrol.ui.common.HermesScaffold
|
||||
import com.m57.hermescontrol.ui.common.LoadingState
|
||||
@@ -80,6 +81,16 @@ fun ToolsetsScreen(
|
||||
)
|
||||
}
|
||||
|
||||
state.toolsets.isEmpty() -> {
|
||||
EmptyState(
|
||||
title = "No toolsets reported",
|
||||
subtitle = "Verify configuration or retry",
|
||||
onAction = { viewModel.loadToolsets() },
|
||||
actionLabel = "Refresh",
|
||||
modifier = Modifier.padding(paddingValues),
|
||||
)
|
||||
}
|
||||
|
||||
else -> {
|
||||
Box(Modifier.fillMaxSize()) {
|
||||
if (state.isLoading && state.toolsets.isEmpty()) {
|
||||
|
||||
Reference in new issue
Block a user