{{#app-view class="node list"}} {{#block-slot name='header'}}

Nodes {{format-number items.length}} total

{{/block-slot}} {{#block-slot name='toolbar'}} {{#if (gt items.length 0) }} {{catalog-filter searchable=(array searchableHealthy searchableUnhealthy) search=s status=filters.status onchange=(action 'filter')}} {{/if}} {{/block-slot}} {{#block-slot name='content'}} {{#if (gt unhealthy.length 0) }}

Unhealthy Nodes

{{! think about 2 differing views here }}
{{/if}} {{#if (gt healthy.length 0) }}

Healthy Nodes

{{#changeable-set dispatcher=searchableHealthy}} {{#block-slot name='set' as |healthy|}} {{#list-collection cellHeight=92 items=healthy as |item index|}} {{#healthchecked-resource data-test-node=item.Node href=(href-to 'dc.nodes.show' item.Node) name=item.Node address=item.Address checks=item.Checks }} {{#block-slot name='icon'}} {{#if (eq item.Address leader.Address)}} Leader {{/if}} {{/block-slot}} {{/healthchecked-resource}} {{/list-collection}} {{/block-slot}} {{#block-slot name='empty'}}

There are no healthy nodes for that search.

{{/block-slot}} {{/changeable-set}}
{{/if}} {{#if (and (eq healthy.length 0) (eq unhealthy.length 0)) }}

There are no nodes.

{{/if}} {{/block-slot}} {{/app-view}}