open-consul/ui/packages/consul-ui/app/components/consul/instance-checks/index.hbs
John Cowen 08cf0f18a6
ui: [BUGFIX] Ensure we show the correct count of instances for each node (#9749)
* Add MeshServiceInstances property to node model

* Use MeshServiceInstances property

* Make sure we show the 'No * checks' if Checks.length is zero
2021-02-11 11:36:36 +00:00

30 lines
800 B
Handlebars

{{#if (eq this.healthCheck.check 'empty') }}
<dl class={{this.healthCheck.check}}>
<dt>
<Tooltip>
{{capitalize @type}} Checks
</Tooltip>
</dt>
<dd>No {{@type}} checks</dd>
</dl>
{{else}}
{{#if (eq this.healthCheck.count @items.length)}}
<dl class={{this.healthCheck.check}}>
<dt>
<Tooltip>
{{capitalize @type}} Checks
</Tooltip>
</dt>
<dd>All {{@type}} checks {{this.healthCheck.status}}</dd>
</dl>
{{else}}
<dl class={{this.healthCheck.check}}>
<dt>
<Tooltip>
{{capitalize @type}} Checks
</Tooltip>
</dt>
<dd>{{this.healthCheck.count}}/{{@items.length}} {{@type}} checks {{this.healthCheck.status}}</dd>
</dl>
{{/if}}
{{/if}}