feat: PBS-Badge neben Hostname in Proxmox-Uebersicht
This commit is contained in:
parent
c1d1bd8a5e
commit
474a396589
@ -151,6 +151,7 @@ export default function ProxmoxServers() {
|
||||
containers: `${ctRunning}/${ctTotal}`,
|
||||
ctRunning,
|
||||
ctTotal,
|
||||
hasPBS: sys?.pbs?.available === true,
|
||||
sys,
|
||||
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>}
|
||||
</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('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>}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user