2020-12-07 09:14:30 +00:00
|
|
|
{{#let (hash
|
|
|
|
statuses=(if status (split status ',') undefined)
|
|
|
|
kinds=(if kind (split kind ',') undefined)
|
|
|
|
checks=(if check (split check ',') undefined)
|
|
|
|
searchproperties=(if (not-eq searchproperty undefined)
|
|
|
|
(split searchproperty ',')
|
|
|
|
searchProperties
|
|
|
|
)
|
|
|
|
) as |filters|}}
|
|
|
|
{{#let (or sortBy "Status:asc") as |sort|}}
|
2020-10-02 08:09:05 +00:00
|
|
|
<div class="tab-section">
|
2020-04-22 14:40:59 +00:00
|
|
|
<div role="tabpanel">
|
2020-12-07 09:14:30 +00:00
|
|
|
|
|
|
|
{{#if (gt item.MeshChecks.length 0) }}
|
|
|
|
<input type="checkbox" id="toolbar-toggle" />
|
|
|
|
<Consul::HealthCheck::SearchBar
|
|
|
|
@search={{search}}
|
|
|
|
@onsearch={{action (mut search) value="target.value"}}
|
|
|
|
@searchproperties={{searchProperties}}
|
|
|
|
|
|
|
|
@sort={{sort}}
|
|
|
|
@onsort={{action (mut sortBy) value="target.selected"}}
|
|
|
|
|
|
|
|
@filter={{filters}}
|
|
|
|
@onfilter={{hash
|
|
|
|
searchproperty=(action (mut searchproperty) value="target.selectedItems")
|
|
|
|
status=(action (mut status) value="target.selectedItems")
|
|
|
|
kind=(action (mut kind) value="target.selectedItems")
|
|
|
|
check=(action (mut check) value="target.selectedItems")
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<DataCollection
|
|
|
|
@type="health-check"
|
|
|
|
@sort={{sort}}
|
|
|
|
@filters={{filters}}
|
|
|
|
@search={{search}}
|
|
|
|
@items={{item.MeshChecks}}
|
|
|
|
as |collection|>
|
|
|
|
<collection.Collection>
|
2020-11-30 17:22:43 +00:00
|
|
|
<Consul::HealthCheck::List
|
2020-12-07 09:14:30 +00:00
|
|
|
@items={{collection.items}}
|
2020-11-10 16:31:47 +00:00
|
|
|
/>
|
2020-12-07 09:14:30 +00:00
|
|
|
</collection.Collection>
|
|
|
|
<collection.Empty>
|
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
|
|
|
<p>
|
|
|
|
This instance has no health checks{{#if (gt item.MeshChecks.length 0)}} matching that search{{/if}}.
|
|
|
|
</p>
|
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
|
|
|
</collection.Empty>
|
|
|
|
</DataCollection>
|
|
|
|
|
2020-04-22 14:40:59 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-07 09:14:30 +00:00
|
|
|
{{/let}}
|
|
|
|
{{/let}}
|