feat: PBS-Badge neben Hostname in Proxmox-Uebersicht

This commit is contained in:
cynfo3000 2026-03-06 23:11:13 +01:00
parent c1d1bd8a5e
commit 474a396589

View File

@ -151,6 +151,7 @@ export default function ProxmoxServers() {
containers: `${ctRunning}/${ctTotal}`, containers: `${ctRunning}/${ctTotal}`,
ctRunning, ctRunning,
ctTotal, ctTotal,
hasPBS: sys?.pbs?.available === true,
sys, sys,
proxmox, proxmox,
} }
@ -304,7 +305,16 @@ export default function ProxmoxServers() {
{a.customer ? <span className="text-orange-400">{a.customerNumber}</span> : <span className="text-gray-600"></span>} {a.customer ? <span className="text-orange-400">{a.customerNumber}</span> : <span className="text-gray-600"></span>}
</td> </td>
)} )}
{isColVisible('name') && <td className="px-2 py-1.5 text-white font-medium">{a.name}</td>} {isColVisible('name') && (
<td className="px-2 py-1.5">
<div className="flex items-center gap-2">
<span className="text-white font-medium">{a.name}</span>
{a.hasPBS && (
<span className="text-[10px] font-bold px-1.5 py-0.5 rounded bg-orange-500/20 text-orange-400 border border-orange-500/30 leading-none">PBS</span>
)}
</div>
</td>
)}
{isColVisible('hostname') && <td className="px-2 py-1.5 text-gray-400 text-xs">{a.hostname}</td>} {isColVisible('hostname') && <td className="px-2 py-1.5 text-gray-400 text-xs">{a.hostname}</td>}
{isColVisible('version') && <td className="px-2 py-1.5 text-gray-400">{a.pveVersion || '—'}</td>} {isColVisible('version') && <td className="px-2 py-1.5 text-gray-400">{a.pveVersion || '—'}</td>}
{isColVisible('ip') && <td className="px-2 py-1.5 text-gray-400">{a.ip}</td>} {isColVisible('ip') && <td className="px-2 py-1.5 text-gray-400">{a.ip}</td>}