2023-03-14 13:18:55 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
}}
|
|
|
|
|
2021-04-06 12:40:40 +00:00
|
|
|
<Route
|
|
|
|
@name={{routeName}}
|
|
|
|
as |route|>
|
2021-09-15 18:50:11 +00:00
|
|
|
{{#let
|
2022-01-07 19:16:21 +00:00
|
|
|
(entries route.model.item.Service.TaggedAddresses)
|
|
|
|
as |items|}}
|
2021-04-06 12:40:40 +00:00
|
|
|
<div class="tab-section">
|
2022-01-07 19:16:21 +00:00
|
|
|
{{#if (gt items.length 0)}}
|
2021-04-06 12:40:40 +00:00
|
|
|
<TabularCollection
|
|
|
|
data-test-addresses
|
|
|
|
class="consul-tagged-addresses"
|
2022-01-07 19:16:21 +00:00
|
|
|
@items={{items}} as |taggedAddress index|
|
2021-04-06 12:40:40 +00:00
|
|
|
>
|
|
|
|
<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>
|
2021-09-15 18:50:11 +00:00
|
|
|
{{/let}}
|
2021-04-06 12:40:40 +00:00
|
|
|
</Route>
|