mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
[ui, deployments] job status panel legend: counts of 0 don't get links (#17644)
This commit is contained in:
@@ -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 ']')}}
|
||||
|
||||
@@ -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) ']')}}
|
||||
|
||||
Reference in New Issue
Block a user