fix: show stopped services in list + loading bar on action

- API: --all flag in systemctl list-units to show inactive services
- API: removed head -50 limit
- Android: LinearProgressIndicator while service action is running
This commit is contained in:
2026-06-09 19:29:36 -04:00
parent 96a73384c4
commit 92bc12355c
3 changed files with 8 additions and 1 deletions

View File

@@ -372,6 +372,13 @@ private fun ServicesTab(state: ServerDetailUiState, viewModel: ServerDetailViewM
) )
Spacer(modifier = Modifier.height(8.dp)) Spacer(modifier = Modifier.height(8.dp))
if (state.serviceActionRunning != null) {
LinearProgressIndicator(
modifier = Modifier.fillMaxWidth().padding(bottom = 8.dp),
color = MaterialTheme.colorScheme.primary
)
}
if (state.serviceActionResult != null) { if (state.serviceActionResult != null) {
Card( Card(
colors = CardDefaults.cardColors( colors = CardDefaults.cardColors(

Binary file not shown.

View File

@@ -573,7 +573,7 @@ class ApiController
throw new \RuntimeException('SSH connection failed'); throw new \RuntimeException('SSH connection failed');
} }
$output = $ssh->exec('systemctl list-units --type=service --no-pager --no-legend 2>/dev/null | head -50'); $output = $ssh->exec('systemctl list-units --type=service --all --no-pager --no-legend 2>/dev/null');
$ssh->disconnect(); $ssh->disconnect();
$services = []; $services = [];