mirror of
https://github.com/status-im/consul.git
synced 2025-01-24 20:51:10 +00:00
17438020f1
* ui: Remove all vestiges of role=tabpanel * Switch out tablist role for a label, default to Secondary * Move healthcheckout-output headers to h2, ideally these would be outside the component * Add aria-label for empty button * Fix up non-unique ids in topology component * Temporarily fixup h2 in KV > LockSession * Fixup dl with no dt * h3 > h2 * Fix up page objects that were reliant on ids
58 lines
1.8 KiB
Handlebars
58 lines
1.8 KiB
Handlebars
<EventSource @src={{gatewayServices}} />
|
|
<div class="tab-section">
|
|
{{#let (hash
|
|
instances=(if instance (split instance ',') undefined)
|
|
searchproperties=(if (not-eq searchproperty undefined)
|
|
(split searchproperty ',')
|
|
(array 'Name' 'Tags')
|
|
)
|
|
) as |filters|}}
|
|
{{#let (or sortBy "Name: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>
|
|
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>
|
|
<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>
|
|
{{/let}}
|
|
{{/let}}
|
|
</div>
|