fix: remove duplicate card subtitle, improve disable logic, inclusive offline count

This commit is contained in:
2026-03-21 21:16:26 +01:00
parent 025c021896
commit a5e50fe8b7
2 changed files with 5 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ export function ServerListWithActions({ servers, user }: ServerListWithActionsPr
const canCreateServer = hasPermission(user, 'server.create');
const runningCount = servers.filter((s) => s.status === ServiceStatus.Running).length;
const offlineCount = servers.filter((s) => s.status === ServiceStatus.Stopped).length;
const offlineCount = servers.filter((s) => s.status !== ServiceStatus.Running).length;
return (
<>