1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 23:09:41 +02:00

fix(node): check more node role labels [EE-6968] (#11658)

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2024-04-23 16:16:41 +12:00 committed by GitHub
parent 48cf27a3b8
commit 2463648161
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 8 deletions

View file

@ -23,14 +23,12 @@ function StatusCell({
}
return (
<div className="whitespace-nowrap">
<div className="inline-flex whitespace-nowrap gap-x-2">
<StatusBadge color={status === 'Ready' ? 'success' : 'warning'}>
{status}
</StatusBadge>
{node.spec?.unschedulable && (
<StatusBadge color="warning" className="mt-2">
SchedulingDisabled
</StatusBadge>
<StatusBadge color="warning">SchedulingDisabled</StatusBadge>
)}
</div>
);