2020-11-10 16:31:47 +00:00
|
|
|
<div class="tab-section">
|
|
|
|
<div role="tabpanel">
|
2020-11-12 18:45:11 +00:00
|
|
|
{{#let (or sortBy "DestinationName:asc") as |sort|}}
|
2020-11-10 16:31:47 +00:00
|
|
|
{{#if (gt proxy.Service.Proxy.Upstreams.length 0)}}
|
2020-11-12 18:45:11 +00:00
|
|
|
<input type="checkbox" id="toolbar-toggle" />
|
|
|
|
<Consul::UpstreamInstance::SearchBar
|
|
|
|
@search={{search}}
|
|
|
|
@onsearch={{action (mut search) value="target.value"}}
|
|
|
|
|
|
|
|
@sort={{sort}}
|
|
|
|
@onsort={{action (mut sortBy) value="target.selected"}}
|
|
|
|
/>
|
|
|
|
<Consul::UpstreamInstance::List
|
|
|
|
@search={{search}}
|
|
|
|
@sort={{sort}}
|
|
|
|
@items={{proxy.Service.Proxy.Upstreams}}
|
|
|
|
@dc={{dc}}
|
|
|
|
@nspace={{nspace}}
|
|
|
|
>
|
|
|
|
<:empty>
|
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
|
|
|
<p>
|
|
|
|
{{#if search.length}}
|
|
|
|
No upstreams where found matching that search.
|
|
|
|
{{else}}
|
|
|
|
This service has no upstreams.
|
|
|
|
{{/if}}
|
|
|
|
</p>
|
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
|
|
|
</:empty>
|
|
|
|
</Consul::UpstreamInstance::List>
|
2020-11-10 16:31:47 +00:00
|
|
|
{{/if}}
|
2020-11-12 18:45:11 +00:00
|
|
|
{{/let}}
|
2020-11-10 16:31:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|