2020-12-09 13:08:30 +00:00
|
|
|
{{#let (hash
|
|
|
|
statuses=(if status (split status ',') undefined)
|
|
|
|
sources=(if source (split source ',') undefined)
|
|
|
|
searchproperties=(if (not-eq searchproperty undefined)
|
|
|
|
(split searchproperty ',')
|
|
|
|
searchProperties
|
|
|
|
)
|
|
|
|
) as |filters|}}
|
|
|
|
{{#let (or sortBy "Status:asc") as |sort|}}
|
2020-12-14 14:25:33 +00:00
|
|
|
{{#let (reject-by 'Service.Kind' 'connect-proxy' item.Services) as |items|}}
|
2020-12-09 13:08:30 +00:00
|
|
|
<div class="tab-section">
|
2020-04-08 09:56:36 +00:00
|
|
|
{{#if (gt items.length 0) }}
|
|
|
|
<input type="checkbox" id="toolbar-toggle" />
|
2020-12-09 13:08:30 +00:00
|
|
|
<Consul::ServiceInstance::SearchBar
|
2020-12-14 14:25:33 +00:00
|
|
|
@sources={{get (collection items) 'ExternalSources'}}
|
2020-12-09 13:08:30 +00:00
|
|
|
@search={{search}}
|
2020-05-29 15:42:46 +00:00
|
|
|
@onsearch={{action (mut search) value="target.value"}}
|
2020-12-09 13:08:30 +00:00
|
|
|
@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")
|
|
|
|
source=(action (mut source) value="target.selectedItems")
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
{{! filter out any sidecar proxies }}
|
|
|
|
<DataCollection
|
|
|
|
@type="service-instance"
|
|
|
|
@sort={{sort}}
|
|
|
|
@filters={{filters}}
|
|
|
|
@search={{search}}
|
2021-01-04 16:42:44 +00:00
|
|
|
@items={{items}}
|
2020-12-09 13:08:30 +00:00
|
|
|
as |collection|>
|
|
|
|
<collection.Collection>
|
|
|
|
<Consul::ServiceInstance::List
|
|
|
|
@node={{item}}
|
|
|
|
@routeName="dc.services.show"
|
|
|
|
@items={{collection.items}}
|
|
|
|
@checks={{checks}}
|
|
|
|
/>
|
|
|
|
</collection.Collection>
|
|
|
|
<collection.Empty>
|
2020-07-08 13:34:57 +00:00
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
|
|
|
<p>
|
2021-01-04 16:42:44 +00:00
|
|
|
This node has no service instances{{#if (gt items.length 0)}} matching that search{{/if}}.
|
2020-07-08 13:34:57 +00:00
|
|
|
</p>
|
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
2020-12-09 13:08:30 +00:00
|
|
|
</collection.Empty>
|
|
|
|
</DataCollection>
|
2020-07-17 13:42:45 +00:00
|
|
|
</div>
|
2020-12-09 13:08:30 +00:00
|
|
|
{{/let}}
|
|
|
|
{{/let}}
|
2020-07-17 13:42:45 +00:00
|
|
|
{{/let}}
|