2021-01-25 18:13:54 +00:00
|
|
|
{{#let
|
|
|
|
|
|
|
|
(hash
|
|
|
|
value=(or sortBy "Status:asc")
|
|
|
|
change=(action (mut sortBy) value="target.selected")
|
|
|
|
)
|
|
|
|
|
|
|
|
(hash
|
|
|
|
status=(hash
|
|
|
|
value=(if status (split status ',') undefined)
|
|
|
|
change=(action (mut status) value="target.selectedItems")
|
|
|
|
)
|
|
|
|
source=(hash
|
|
|
|
value=(if source (split source ',') undefined)
|
|
|
|
change=(action (mut source) value="target.selectedItems")
|
|
|
|
)
|
|
|
|
searchproperty=(hash
|
|
|
|
value=(if (not-eq searchproperty undefined)
|
|
|
|
(split searchproperty ',')
|
|
|
|
searchProperties
|
|
|
|
)
|
|
|
|
change=(action (mut searchproperty) value="target.selectedItems")
|
|
|
|
default=searchProperties
|
|
|
|
)
|
2020-12-09 13:08:30 +00:00
|
|
|
)
|
2021-01-25 18:13:54 +00:00
|
|
|
|
|
|
|
(reject-by 'Service.Kind' 'connect-proxy' item.Services)
|
|
|
|
|
|
|
|
as |sort filters 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}}
|
|
|
|
|
|
|
|
@filter={{filters}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
{{! filter out any sidecar proxies }}
|
|
|
|
<DataCollection
|
|
|
|
@type="service-instance"
|
2021-01-25 18:13:54 +00:00
|
|
|
@sort={{sort.value}}
|
2020-12-09 13:08:30 +00:00
|
|
|
@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>
|
|
|
|
{{/let}}
|