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:
parent
57c45838d5
commit
7c4c985247
4 changed files with 23 additions and 21 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue