2019-02-21 13:10:53 +00:00
|
|
|
{{#if (gt item.Proxy.Upstreams.length 0) }}
|
2020-03-06 14:10:34 +00:00
|
|
|
<TabularCollection
|
|
|
|
data-test-upstreams
|
|
|
|
@items={{item.Proxy.Upstreams}} as |item index|
|
|
|
|
>
|
2020-02-19 19:26:38 +00:00
|
|
|
<BlockSlot @name="header">
|
2019-03-07 10:51:39 +00:00
|
|
|
<th>Upstream</th>
|
|
|
|
<th>Datacenter</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Local Bind Address</th>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
|
|
|
<BlockSlot @name="row">
|
2019-03-07 10:51:39 +00:00
|
|
|
<td>
|
2019-12-17 18:47:37 +00:00
|
|
|
<a data-test-destination-name>
|
|
|
|
{{item.DestinationName}}
|
|
|
|
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
|
|
|
|
{{#if (not-eq item.DestinationType 'prepared_query')}}
|
|
|
|
{{! TODO: slugify }}
|
|
|
|
<em class={{concat 'nspace-' (or item.DestinationNamespace 'default')}}>{{or item.DestinationNamespace 'default'}}</em>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
2019-03-07 10:51:39 +00:00
|
|
|
</td>
|
|
|
|
<td data-test-destination-datacenter>
|
|
|
|
{{item.Datacenter}}
|
2019-02-21 13:10:53 +00:00
|
|
|
</td>
|
|
|
|
<td data-test-destination-type>
|
|
|
|
{{item.DestinationType}}
|
|
|
|
</td>
|
2019-03-07 10:51:39 +00:00
|
|
|
<td data-test-local-bind-address>
|
|
|
|
{{item.LocalBindAddress}}:{{item.LocalBindPort}}
|
2019-02-21 13:10:53 +00:00
|
|
|
</td>
|
2020-02-19 19:26:38 +00:00
|
|
|
</BlockSlot>
|
2020-03-06 14:10:34 +00:00
|
|
|
</TabularCollection>
|
2019-02-21 13:10:53 +00:00
|
|
|
{{else}}
|
|
|
|
<p>
|
|
|
|
There are no upstreams.
|
|
|
|
</p>
|
|
|
|
{{/if}}
|