1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-21 14:29:40 +02:00

fix(apps): simplify helm status [r8s-155] (#230)

This commit is contained in:
Ali 2024-12-11 13:18:34 +13:00 committed by GitHub
parent 069f22afa4
commit 94d2e32b49

View file

@ -40,23 +40,28 @@ function Cell({
},
])}
/>
{item.DeploymentType ===
KubernetesApplicationDeploymentTypes.Replicated && (
<span>Replicated</span>
)}
{item.DeploymentType === KubernetesApplicationDeploymentTypes.Global && (
<span>Global</span>
)}
{item.RunningPodsCount >= 0 && item.TotalPodsCount >= 0 && (
<span>
<code aria-label="Running Pods" title="Running Pods">
{item.RunningPodsCount}
</code>{' '}
/{' '}
<code aria-label="Total Pods" title="Total Pods">
{item.TotalPodsCount}
</code>
</span>
{item.ApplicationType !== KubernetesApplicationTypes.Helm && (
<>
{item.DeploymentType ===
KubernetesApplicationDeploymentTypes.Replicated && (
<span className="mr-1">Replicated</span>
)}
{item.DeploymentType ===
KubernetesApplicationDeploymentTypes.Global && (
<span className="mr-1">Global</span>
)}
{item.RunningPodsCount >= 0 && item.TotalPodsCount >= 0 && (
<span>
<code aria-label="Running Pods" title="Running Pods">
{item.RunningPodsCount}
</code>{' '}
/{' '}
<code aria-label="Total Pods" title="Total Pods">
{item.TotalPodsCount}
</code>
</span>
)}
</>
)}
{item.KubernetesApplications && <span>{item.Status}</span>}
</>