1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-03 04:45:21 +02:00

upgrade some badge components to match EE (#10451)

This commit is contained in:
Matt Hook 2023-10-13 03:10:16 +13:00 committed by GitHub
parent 57c45838d5
commit 7c4c985247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 21 deletions

View file

@ -63,15 +63,15 @@ function Cell({ row }: CellContext<ConfigMapRowData, string>) {
</Link>
{isSystemConfigMap && (
<Badge type="success" className="ml-2">
system
System
</Badge>
)}
{!isSystemToken && !hasConfigurationOwner && (
<Badge className="ml-2">external</Badge>
<Badge className="ml-2">External</Badge>
)}
{!row.original.inUse && !isSystemConfigMap && (
<Badge type="warn" className="ml-2">
unused
Unused
</Badge>
)}
</div>

View file

@ -66,15 +66,15 @@ function Cell({ row }: CellContext<SecretRowData, string>) {
</Link>
{isSystemSecret && (
<Badge type="success" className="ml-2">
system
System
</Badge>
)}
{!isSystemToken && !hasConfigurationOwner && (
<Badge className="ml-2">external</Badge>
<Badge className="ml-2">External</Badge>
)}
{!row.original.inUse && !isSystemSecret && (
<Badge type="warn" className="ml-2">
unused
Unused
</Badge>
)}
</div>