Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Drop redundant Platform row from agent SystemInfoCard

rcourtmanc29cf0bbd089
diff --git a/frontend-modern/src/components/shared/cards/SystemInfoCard.tsx b/frontend-modern/src/components/shared/cards/SystemInfoCard.tsx
index a79f382a0b..da9773e497 100644
--- a/frontend-modern/src/components/shared/cards/SystemInfoCard.tsx
+++ b/frontend-modern/src/components/shared/cards/SystemInfoCard.tsx
@@ -58,19 +58,19 @@ export const SystemInfoCard: Component<SystemInfoCardProps> = (props) => {
{agentInfo.hostname}
</span>
</div>
- <div class="flex items-center justify-between">
- <span class="text-muted">Platform</span>
- <span class="font-medium text-base-content capitalize">
- {agentInfo.platform || 'Unknown'}
- </span>
- </div>
<div class="flex items-center justify-between gap-2 min-w-0">
<span class="text-muted shrink-0">OS</span>
<span
class="font-medium text-base-content truncate"
- title={`${agentInfo.osName} ${agentInfo.osVersion}`}
+ title={
+ agentInfo.osName
+ ? `${agentInfo.osName}${agentInfo.osVersion ? ` ${agentInfo.osVersion}` : ''}`
+ : agentInfo.platform || 'Unknown'
+ }
>
- {agentInfo.osName} {agentInfo.osVersion}
+ {agentInfo.osName
+ ? `${agentInfo.osName}${agentInfo.osVersion ? ` ${agentInfo.osVersion}` : ''}`
+ : agentInfo.platform || 'Unknown'}
</span>
</div>
<div class="flex items-center justify-between gap-2 min-w-0">