consul/ui/packages/consul-ui/app/templates/dc/services/instance/healthchecks.hbs

23 lines
602 B
Handlebars

<div class="tab-section">
<div role="tabpanel">
{{#let (append item.Checks (or proxy.Checks (array))) as |checks|}}
{{#if (gt checks.length 0) }}
<section data-test-checks>
<Consul::HealthCheck::List
@items={{sort-by (comparator 'check' 'Status:asc') checks}}
@exposed={{proxyMeta.ServiceProxy.Expose.Checks}}
/>
</section>
{{else}}
<EmptyState>
<BlockSlot @name="body">
<p>
This instance has no health checks.
</p>
</BlockSlot>
</EmptyState>
{{/if}}
{{/let}}
</div>
</div>