2020-04-08 09:56:36 +00:00
|
|
|
<div id="instances" class="tab-section">
|
|
|
|
<div role="tabpanel">
|
2020-09-01 18:13:11 +00:00
|
|
|
{{#let (hash
|
|
|
|
statuses=(if status (split status ',') undefined)
|
|
|
|
sources=(if source (split source ',') undefined)
|
|
|
|
) as |filters|}}
|
2020-11-19 16:05:46 +00:00
|
|
|
{{#let (or sortBy "Status:asc") as |sort|}}
|
2020-09-01 18:13:11 +00:00
|
|
|
{{#if (gt items.length 0) }}
|
2020-04-08 09:56:36 +00:00
|
|
|
<input type="checkbox" id="toolbar-toggle" />
|
2020-10-14 08:03:39 +00:00
|
|
|
<Consul::ServiceInstance::SearchBar
|
2020-09-01 18:13:11 +00:00
|
|
|
@sources={{externalSources}}
|
|
|
|
@search={{search}}
|
2020-05-29 15:42:46 +00:00
|
|
|
@onsearch={{action (mut search) value="target.value"}}
|
2020-09-01 18:13:11 +00:00
|
|
|
|
|
|
|
@sort={{sort}}
|
|
|
|
@onsort={{action (mut sortBy) value="target.selected"}}
|
|
|
|
|
|
|
|
@filter={{filters}}
|
|
|
|
@onfilter={{hash
|
|
|
|
status=(action (mut status) value="target.selectedItems")
|
|
|
|
source=(action (mut source) value="target.selectedItems")
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
{{#let (filter (filter-predicate 'serviceInstance' filters) items) as |filtered|}}
|
|
|
|
{{#let (sort-by (comparator 'serviceInstance' sort) filtered) as |sorted|}}
|
|
|
|
<ChangeableSet @dispatcher={{searchable 'serviceInstance' sorted}} @terms={{search}}>
|
|
|
|
<BlockSlot @name="set" as |searched|>
|
2020-10-14 08:03:39 +00:00
|
|
|
<Consul::ServiceInstance::List @routeName="dc.services.instance" @items={{searched}}/>
|
2020-04-08 09:56:36 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="empty">
|
2020-07-08 13:34:57 +00:00
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
|
|
|
<p>
|
|
|
|
There are no services.
|
|
|
|
</p>
|
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
2020-04-08 09:56:36 +00:00
|
|
|
</BlockSlot>
|
|
|
|
</ChangeableSet>
|
2020-09-01 18:13:11 +00:00
|
|
|
{{/let}}
|
|
|
|
{{/let}}
|
|
|
|
{{/let}}
|
|
|
|
{{/let}}
|
2020-04-08 09:56:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|