mirror of https://github.com/hashicorp/consul
Use translations for empty states peers.show
parent
0532dcc441
commit
a33feb2b41
|
@ -5,13 +5,11 @@
|
||||||
<EmptyState @login={{route.model.app.login.open}}>
|
<EmptyState @login={{route.model.app.login.open}}>
|
||||||
<BlockSlot @name="header">
|
<BlockSlot @name="header">
|
||||||
<h2>
|
<h2>
|
||||||
No server addresses.
|
{{t "routes.dc.peers.show.addresses.empty.header"}}
|
||||||
</h2>
|
</h2>
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="body">
|
<BlockSlot @name="body">
|
||||||
<div>
|
{{t "routes.dc.peers.show.addresses.empty.body" htmlSafe=true}}
|
||||||
There don't seem to be any server addresses for this peer.
|
|
||||||
</div>
|
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="actions">
|
<BlockSlot @name="actions">
|
||||||
<li class="docs-link">
|
<li class="docs-link">
|
||||||
|
|
|
@ -79,28 +79,19 @@
|
||||||
<EmptyState @login={{route.model.app.login.open}}>
|
<EmptyState @login={{route.model.app.login.open}}>
|
||||||
<BlockSlot @name="header">
|
<BlockSlot @name="header">
|
||||||
<h2>
|
<h2>
|
||||||
No visible exported services to
|
{{t
|
||||||
{{route.model.peer.Name}}
|
"routes.dc.peers.show.exported.empty.header"
|
||||||
|
name=route.model.peer.Name
|
||||||
|
}}
|
||||||
</h2>
|
</h2>
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="body">
|
<BlockSlot @name="body">
|
||||||
{{#if items.length}}
|
{{t
|
||||||
<div>
|
"routes.dc.peers.show.exported.empty.body"
|
||||||
No services where found matching that search, or you
|
items=items.length
|
||||||
may not have access to view the services you are
|
name=route.model.peer.Name
|
||||||
searching for.
|
htmlSafe=true
|
||||||
</div>
|
}}
|
||||||
{{else}}
|
|
||||||
<div>
|
|
||||||
Services must be exported from one peer to another to
|
|
||||||
enable service communication across two peers. There
|
|
||||||
don't seem to be any services exported to
|
|
||||||
{{route.model.peer.Name}}
|
|
||||||
yet, or you may not have
|
|
||||||
<code>services:read</code>
|
|
||||||
permissions to access to this view.
|
|
||||||
</div>
|
|
||||||
{{/if}}
|
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="actions">
|
<BlockSlot @name="actions">
|
||||||
<li class="docs-link">
|
<li class="docs-link">
|
||||||
|
|
|
@ -85,25 +85,19 @@
|
||||||
<EmptyState @login={{route.model.app.login.open}}>
|
<EmptyState @login={{route.model.app.login.open}}>
|
||||||
<BlockSlot @name="header">
|
<BlockSlot @name="header">
|
||||||
<h2>
|
<h2>
|
||||||
No visible imported services from
|
{{t
|
||||||
{{route.model.peer.Name}}
|
"routes.dc.peers.show.imported.empty.header"
|
||||||
|
name=route.model.peer.Name
|
||||||
|
}}
|
||||||
</h2>
|
</h2>
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="body">
|
<BlockSlot @name="body">
|
||||||
{{#if items.length}}
|
{{t
|
||||||
<div>
|
"routes.dc.peers.show.imported.empty.body"
|
||||||
No services where found matching that search, or you may not
|
items=items.length
|
||||||
have access to view the services you are searching for.
|
name=route.model.peer.Name
|
||||||
</div>
|
htmlSafe=true
|
||||||
{{else}}
|
}}
|
||||||
<div>Services must be exported from one peer to another to
|
|
||||||
enable service communication across two peers. There don't
|
|
||||||
seem to be any services imported from
|
|
||||||
{{route.model.peer.Name}}
|
|
||||||
yet, or you may not have
|
|
||||||
<code>service:read</code>
|
|
||||||
permissions to access to this view.</div>
|
|
||||||
{{/if}}
|
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="actions">
|
<BlockSlot @name="actions">
|
||||||
<li class="docs-link">
|
<li class="docs-link">
|
||||||
|
|
|
@ -117,10 +117,10 @@ dc:
|
||||||
index:
|
index:
|
||||||
empty:
|
empty:
|
||||||
header: |
|
header: |
|
||||||
{items, select,
|
{items, select,
|
||||||
0 {Welcome to Peers}
|
0 {Welcome to Peers}
|
||||||
other {No peers found}
|
other {No peers found}
|
||||||
}
|
}
|
||||||
body: |
|
body: |
|
||||||
{items, select,
|
{items, select,
|
||||||
0 {Cluster peering is the recommended way to connect services across or within Consul datacenters. Peering is a one-to-one relationship in which each peer is either a open-source Consul datacenter or a Consul enterprise admin partition. There don't seem to be any peers for this {canUsePartitions, select,
|
0 {Cluster peering is the recommended way to connect services across or within Consul datacenters. Peering is a one-to-one relationship in which each peer is either a open-source Consul datacenter or a Consul enterprise admin partition. There don't seem to be any peers for this {canUsePartitions, select,
|
||||||
|
@ -145,6 +145,32 @@ dc:
|
||||||
tab-tooltip: Services exported from {name}
|
tab-tooltip: Services exported from {name}
|
||||||
addresses:
|
addresses:
|
||||||
tooltip: The number of services exported from {name}
|
tooltip: The number of services exported from {name}
|
||||||
|
show:
|
||||||
|
imported:
|
||||||
|
empty:
|
||||||
|
header: No visible imported services from {name}
|
||||||
|
body: |
|
||||||
|
<div>
|
||||||
|
{items, select,
|
||||||
|
0 {Services must be exported from one peer to another to enable service communication across two peers. There don't seem to be any services imported from {name} yet, or you may not have <code>services:read</code> permissions to access to this view.}
|
||||||
|
other {No services where found matching that search, or you may not have access to view the services you are searching for.}
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
exported:
|
||||||
|
empty:
|
||||||
|
header: No visible exported services to {name}
|
||||||
|
body: |
|
||||||
|
<div>
|
||||||
|
{items, select,
|
||||||
|
0 {Services must be exported from one peer to another to enable service communication across two peers. There don't seem to be any services exported to {name} yet, or you may not have <code>services:read</code> permissions to access to this view.}
|
||||||
|
other {No services where found matching that search, or you may not have access to view the services you are searching for.}
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
addresses:
|
||||||
|
empty:
|
||||||
|
header: No server adddresses.
|
||||||
|
body: <div>There don't seem to be any server addresses for this peer.</div>
|
||||||
partitions:
|
partitions:
|
||||||
index:
|
index:
|
||||||
empty:
|
empty:
|
||||||
|
@ -152,7 +178,7 @@ dc:
|
||||||
{items, select,
|
{items, select,
|
||||||
0 {Welcome to Partitions}
|
0 {Welcome to Partitions}
|
||||||
other {No partitions found}
|
other {No partitions found}
|
||||||
}
|
}
|
||||||
body: |
|
body: |
|
||||||
{items, select,
|
{items, select,
|
||||||
0 {There don't seem to be any partitions{canUseACLs, select,
|
0 {There don't seem to be any partitions{canUseACLs, select,
|
||||||
|
|
Loading…
Reference in New Issue