mirror of https://github.com/hashicorp/consul
60 lines
1.9 KiB
Handlebars
60 lines
1.9 KiB
Handlebars
<EventSource @src={{gatewayServices}} />
|
|
<div class="tab-section">
|
|
<div role="tabpanel">
|
|
{{#let (hash
|
|
instances=(if instance (split instance ',') undefined)
|
|
searchproperties=(if (not-eq searchproperty undefined)
|
|
(split searchproperty ',')
|
|
(array 'Name' 'Tags')
|
|
)
|
|
) as |filters|}}
|
|
{{#let (or sortBy "Status:asc") as |sort|}}
|
|
{{#if (gt gatewayServices.length 0)}}
|
|
<input type="checkbox" id="toolbar-toggle" />
|
|
<Consul::Upstream::SearchBar
|
|
@search={{search}}
|
|
@onsearch={{action (mut search) value="target.value"}}
|
|
|
|
@sort={{sort}}
|
|
@onsort={{action (mut sortBy) value="target.selected"}}
|
|
|
|
@filter={{filters}}
|
|
@onfilter={{hash
|
|
searchproperty=(action (mut searchproperty) value="target.selectedItems")
|
|
instance=(action (mut instance) value="target.selectedItems")
|
|
}}
|
|
/>
|
|
{{/if}}
|
|
<p>
|
|
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>.
|
|
</p>
|
|
<DataCollection
|
|
@type="service"
|
|
@sort={{sort}}
|
|
@filters={{filters}}
|
|
@search={{search}}
|
|
@items={{gatewayServices}}
|
|
as |collection|>
|
|
<collection.Collection>
|
|
<Consul::Upstream::List
|
|
@items={{collection.items}}
|
|
@dc={{dc}}
|
|
@nspace={{nspace}}
|
|
>
|
|
</Consul::Upstream::List>
|
|
</collection.Collection>
|
|
<collection.Empty>
|
|
<EmptyState>
|
|
<BlockSlot @name="body">
|
|
<p>
|
|
There are no upstreams{{#if (gt gatewayServices.length 0)}} matching that search{{/if}}.
|
|
</p>
|
|
</BlockSlot>
|
|
</EmptyState>
|
|
</collection.Empty>
|
|
</DataCollection>
|
|
{{/let}}
|
|
{{/let}}
|
|
</div>
|
|
</div>
|