2020-10-05 13:48:26 +00:00
<EventSource @src= {{ gatewayServices }} />
<div class="tab-section">
2020-05-13 15:28:11 +00:00
<div role="tabpanel">
2020-09-01 18:13:11 +00:00
{{ # let ( hash
instances=(if instance (split instance ',') 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 gatewayServices .length 0 ) }}
<input type="checkbox" id="toolbar-toggle" />
2020-10-14 08:03:39 +00:00
<Consul::Upstream::SearchBar
2020-09-01 18:13:11 +00:00
@search= {{ search }}
@onsearch= {{ action ( mut search ) value = "target.value" }}
@sort= {{ sort }}
@onsort= {{ action ( mut sortBy ) value = "target.selected" }}
@filter= {{ filters }}
@onfilter= {{ hash
instance=(action (mut instance) value="target.selectedItems")
}}
/>
{{ / if }}
2020-05-13 15:28:11 +00:00
<p>
2020-07-06 16:06:57 +00:00
Upstreams are services that may receive traffic from this gateway. Learn more about configuring gateways in our <a href=" {{ env 'CONSUL_DOCS_URL' }} /connect/ingress-gateway" target="_blank" rel="noopener noreferrer">documentation</a>.
2020-05-13 15:28:11 +00:00
</p>
2020-09-01 18:13:11 +00:00
{{ # let ( filter ( filter-predicate 'service' filters ) gatewayServices ) as | filtered | }}
{{ # let ( sort-by ( comparator 'service' sort ) filtered ) as | sorted | }}
<ChangeableSet @dispatcher= {{ searchable 'service' sorted }} @terms= {{ search }} >
<BlockSlot @name="set" as |searched|>
2020-10-14 08:03:39 +00:00
<Consul::Upstream::List
2020-09-01 18:13:11 +00:00
@items= {{ searched }}
2020-09-22 17:20:44 +00:00
@dc= {{ dc }}
2020-09-01 18:13:11 +00:00
@nspace= {{ nspace }}
/>
</BlockSlot>
<BlockSlot @name="empty">
<EmptyState>
<BlockSlot @name="body">
<p>
There are no upstreams.
</p>
</BlockSlot>
</EmptyState>
</BlockSlot>
</ChangeableSet>
{{ / let }}
{{ / let }}
{{ / let }}
{{ / let }}
2020-05-13 15:28:11 +00:00
</div>
</div>