mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +02:00
fix: display unscheduled applications (#496)
Co-authored-by: JamesPlayer <james.player@portainer.io>
This commit is contained in:
parent
b5961d79f8
commit
8b7aef883a
18 changed files with 796 additions and 201 deletions
|
@ -33,7 +33,7 @@ export function isExternalApplication(application: Application) {
|
|||
|
||||
function getDeploymentRunningPods(deployment: Deployment): number {
|
||||
const availableReplicas = deployment.status?.availableReplicas ?? 0;
|
||||
const totalReplicas = deployment.status?.replicas ?? 0;
|
||||
const totalReplicas = deployment.spec?.replicas ?? 0;
|
||||
const unavailableReplicas = deployment.status?.unavailableReplicas ?? 0;
|
||||
return availableReplicas || totalReplicas - unavailableReplicas;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue