feat: await command execution in stack management endpoints and update container stats display based on state

This commit is contained in:
SaelixCode
2026-03-03 12:06:19 -05:00
parent 3161d59abf
commit 10a483a0a6
3 changed files with 53 additions and 36 deletions
+1 -1
View File
@@ -899,7 +899,7 @@ export default function EditorLayout() {
</HoverCardContent>
</HoverCard>
<span className="text-xs text-muted-foreground whitespace-nowrap">
CPU: {containerStats[container?.Id]?.cpu || 'N/A'} | RAM: {containerStats[container?.Id]?.ram || 'N/A'} | NET: {containerStats[container?.Id]?.net || '0 B ↓ / 0 B ↑'}
CPU: {container.State === 'running' ? (containerStats[container?.Id]?.cpu || 'N/A') : '0.00%'} | RAM: {container.State === 'running' ? (containerStats[container?.Id]?.ram || 'N/A') : '0.00 MB'} | NET: {container.State === 'running' ? (containerStats[container?.Id]?.net || '0 B ↓ / 0 B ↑') : '0 B/s ↓ / 0 B/s ↑'}
</span>
</div>
</div>