{{title 'Nodes'}} {{#let (selectable-key-values (array "" "All (Any Status)") (array "critical" "Critical Checks") (array "warning" "Warning Checks") (array "passing" "Passing Checks") selected=filterBy ) as |filter| }}

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

{{#if (gt items.length 0) }} {{/if}} {{#let (filter-by "Checks" (action "isUnhealthy") items) as |unhealthy|}} {{#if (gt unhealthy.length 0) }}

Unhealthy Nodes

{{! think about 2 differing views here }}
    {{#each unhealthy as |item|}} {{#if (eq item.Address leader.Address)}} Leader {{/if}} {{/each}}
  • No nodes found

    There don't seem to be any nodes matching that search.

{{/if}} {{/let}} {{#let (filter-by "Checks" (action "isHealthy") items) as |healthy|}} {{#if (gt healthy.length 0) }}

Healthy Nodes

{{#if (eq item.Address leader.Address)}} Leader {{/if}}

No nodes found

There don't seem to be any nodes matching that search.

{{/if}} {{/let}} {{#if (eq items.length 0) }}

Welcome to Nodes

There don't seem to be any nodes, or you may not have access to view nodes yet.

{{/if}}
{{/let}}