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

23 lines
592 B
Handlebars
Raw Normal View History

<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>
<HealthcheckList
@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>