[ui, deployments] job status panel legend: counts of 0 don't get links (#17644)

This commit is contained in:
Phil Renaud
2023-06-22 14:40:11 -04:00
committed by GitHub
parent 13ee343853
commit e617962251
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@
<legend>
{{#each-in this.newAllocsByStatus as |status count|}}
<ConditionalLinkTo
@condition={{not (eq status "unplaced")}}
@condition={{and (not (eq status "unplaced")) (gt count 0)}}
@route="jobs.job.allocations"
@model={{@job}}
@query={{hash status=(concat '["' status '"]') version=(concat '[' this.job.latestDeployment.versionNumber ']')}}

View File

@@ -51,7 +51,7 @@
<legend>
{{#each this.allocTypes as |type|}}
<ConditionalLinkTo
@condition={{not (eq type.label "unplaced")}}
@condition={{and (not (eq type.label "unplaced")) (get (get (get (get this.allocBlocks type.label) 'healthy') 'nonCanary') "length")}}
@route="jobs.job.allocations"
@model={{@job}}
@query={{hash status=(concat '["' type.label '"]') version=(concat '[' (map-by "version" this.versions) ']')}}