mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
6c240fbf2d
* Add some less fake API data * Rename the models class so as to not be confused with JS Proxies * Rearrange routlets slightly and add some initial outletFor tests * Move away from a MeshChecks computed property and just use a helper * Just use ServiceChecks for healthiness filtering for the moment * Make TProxy cookie configurable * Amend exposed paths and upstreams so they know about meta AND proxy * Slight bit of TaggedAddresses refactor while I was checking for `meta` etc * Document CONSUL_TPROXY_ENABLE
37 lines
1.0 KiB
Handlebars
37 lines
1.0 KiB
Handlebars
<Route
|
|
@name={{routeName}}
|
|
as |route|>
|
|
{{#let
|
|
(entries route.model.item.Service.TaggedAddresses)
|
|
as |items|}}
|
|
<div class="tab-section">
|
|
{{#if (gt items.length 0)}}
|
|
<TabularCollection
|
|
data-test-addresses
|
|
class="consul-tagged-addresses"
|
|
@items={{items}} as |taggedAddress index|
|
|
>
|
|
<BlockSlot @name="header">
|
|
<th>Tag</th>
|
|
<th>Address</th>
|
|
</BlockSlot>
|
|
<BlockSlot @name="row">
|
|
{{#with (object-at 1 taggedAddress) as |address|}}
|
|
<td>
|
|
{{object-at 0 taggedAddress}}{{#if (and (eq address.Address item.Address) (eq address.Port item.Port))}} <em data-test-address-default>(default)</em>{{/if}}
|
|
</td>
|
|
<td data-test-address>
|
|
{{address.Address}}:{{address.Port}}
|
|
</td>
|
|
{{/with}}
|
|
</BlockSlot>
|
|
</TabularCollection>
|
|
{{else}}
|
|
<p>
|
|
There are no additional addresses.
|
|
</p>
|
|
{{/if}}
|
|
</div>
|
|
{{/let}}
|
|
</Route>
|