2020-10-05 13:48:26 +00:00
|
|
|
<EventSource @src={{gatewayServices}} />
|
|
|
|
<div class="tab-section">
|
2020-09-01 18:13:11 +00:00
|
|
|
{{#let (hash
|
|
|
|
instances=(if instance (split instance ',') undefined)
|
2020-12-01 15:45:09 +00:00
|
|
|
searchproperties=(if (not-eq searchproperty undefined)
|
|
|
|
(split searchproperty ',')
|
|
|
|
(array 'Name' 'Tags')
|
|
|
|
)
|
2020-09-01 18:13:11 +00:00
|
|
|
) as |filters|}}
|
|
|
|
{{#let (or sortBy "Name:asc") as |sort|}}
|
|
|
|
{{#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
|
2020-12-01 15:45:09 +00:00
|
|
|
searchproperty=(action (mut searchproperty) value="target.selectedItems")
|
2020-09-01 18:13:11 +00:00
|
|
|
instance=(action (mut instance) value="target.selectedItems")
|
|
|
|
}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|
|
|
|
<p>
|
|
|
|
The following services may receive traffic from external services through this gateway. Learn more about configuring gateways in our
|
|
|
|
<a href="{{env 'CONSUL_DOCS_URL'}}/connect/terminating-gateway" target="_blank" rel="noopener noreferrer">step-by-step guide</a>.
|
|
|
|
</p>
|
2020-12-01 15:45:09 +00:00
|
|
|
<DataCollection
|
|
|
|
@type="service"
|
|
|
|
@sort={{sort}}
|
|
|
|
@filters={{filters}}
|
|
|
|
@search={{search}}
|
|
|
|
@items={{gatewayServices}}
|
|
|
|
as |collection|>
|
|
|
|
<collection.Collection>
|
|
|
|
<Consul::Service::List
|
|
|
|
@nspace={{nspace}}
|
|
|
|
@items={{collection.items}}
|
|
|
|
>
|
|
|
|
</Consul::Service::List>
|
|
|
|
</collection.Collection>
|
|
|
|
<collection.Empty>
|
|
|
|
<EmptyState>
|
|
|
|
<BlockSlot @name="body">
|
|
|
|
<p>
|
|
|
|
There are no linked services{{#if (gt gatewayServices.length 0)}} matching that search{{/if}}.
|
|
|
|
</p>
|
|
|
|
</BlockSlot>
|
|
|
|
</EmptyState>
|
|
|
|
</collection.Empty>
|
|
|
|
</DataCollection>
|
2020-09-01 18:13:11 +00:00
|
|
|
{{/let}}
|
|
|
|
{{/let}}
|
2020-05-12 21:34:47 +00:00
|
|
|
</div>
|