2020-06-17 09:25:54 +00:00
|
|
|
<ul data-test-proxy-upstreams>
|
2020-06-18 13:23:42 +00:00
|
|
|
{{#each items as |item|}}
|
|
|
|
<li>
|
|
|
|
<div>
|
|
|
|
<p data-test-destination-name>
|
|
|
|
{{item.DestinationName}}
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
|
|
|
|
{{#if (not-eq item.DestinationType 'prepared_query')}}
|
|
|
|
<dl class="nspace">
|
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
Namespace
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{or item.DestinationNamespace 'default'}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
2020-06-17 09:25:54 +00:00
|
|
|
{{/if}}
|
2020-06-18 13:23:42 +00:00
|
|
|
{{#if (and (not-eq item.Datacenter dc) (not-eq item.Datacenter ""))}}
|
|
|
|
<dl class="datacenter">
|
|
|
|
<dt>
|
|
|
|
<Tooltip>
|
|
|
|
Datacenter
|
|
|
|
</Tooltip>
|
|
|
|
</dt>
|
|
|
|
<dd>
|
|
|
|
{{item.Datacenter}}
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
{{/if}}
|
|
|
|
{{#if (gt item.LocalBindPort 0)}}
|
|
|
|
{{#let (concat (or item.LocalBindAddress '127.0.0.1') ':' item.LocalBindPort) as |combinedAddress|}}
|
2020-06-25 13:50:39 +00:00
|
|
|
<dl>
|
|
|
|
<dt>
|
|
|
|
<CopyButton
|
|
|
|
@value={{combinedAddress}}
|
|
|
|
@name="Address"
|
|
|
|
/>
|
|
|
|
</dt>
|
2020-06-18 13:23:42 +00:00
|
|
|
<dd>{{combinedAddress}}</dd>
|
|
|
|
</dl>
|
|
|
|
{{/let}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{{/each}}
|
2020-06-17 09:25:54 +00:00
|
|
|
</ul>
|